Result.java 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. /**
  2. * Result.java
  3. *
  4. * This file was auto-generated from WSDL
  5. * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  6. */
  7. package com.shulead.datasync.portalcoupon;
  8. public class Result implements java.io.Serializable {
  9. private String code;
  10. private String errorInfo;
  11. private String msg;
  12. private Object[] result;
  13. public Result() {
  14. }
  15. public Result(
  16. String code,
  17. String errorInfo,
  18. String msg,
  19. Object[] result) {
  20. this.code = code;
  21. this.errorInfo = errorInfo;
  22. this.msg = msg;
  23. this.result = result;
  24. }
  25. /**
  26. * Gets the code value for this Result.
  27. *
  28. * @return code
  29. */
  30. public String getCode() {
  31. return code;
  32. }
  33. /**
  34. * Sets the code value for this Result.
  35. *
  36. * @param code
  37. */
  38. public void setCode(String code) {
  39. this.code = code;
  40. }
  41. /**
  42. * Gets the errorInfo value for this Result.
  43. *
  44. * @return errorInfo
  45. */
  46. public String getErrorInfo() {
  47. return errorInfo;
  48. }
  49. /**
  50. * Sets the errorInfo value for this Result.
  51. *
  52. * @param errorInfo
  53. */
  54. public void setErrorInfo(String errorInfo) {
  55. this.errorInfo = errorInfo;
  56. }
  57. /**
  58. * Gets the msg value for this Result.
  59. *
  60. * @return msg
  61. */
  62. public String getMsg() {
  63. return msg;
  64. }
  65. /**
  66. * Sets the msg value for this Result.
  67. *
  68. * @param msg
  69. */
  70. public void setMsg(String msg) {
  71. this.msg = msg;
  72. }
  73. /**
  74. * Gets the result value for this Result.
  75. *
  76. * @return result
  77. */
  78. public Object[] getResult() {
  79. return result;
  80. }
  81. /**
  82. * Sets the result value for this Result.
  83. *
  84. * @param result
  85. */
  86. public void setResult(Object[] result) {
  87. this.result = result;
  88. }
  89. public Object getResult(int i) {
  90. return this.result[i];
  91. }
  92. public void setResult(int i, Object _value) {
  93. this.result[i] = _value;
  94. }
  95. private Object __equalsCalc = null;
  96. public synchronized boolean equals(Object obj) {
  97. if (!(obj instanceof Result)) return false;
  98. Result other = (Result) obj;
  99. if (obj == null) return false;
  100. if (this == obj) return true;
  101. if (__equalsCalc != null) {
  102. return (__equalsCalc == obj);
  103. }
  104. __equalsCalc = obj;
  105. boolean _equals;
  106. _equals = true &&
  107. ((this.code==null && other.getCode()==null) ||
  108. (this.code!=null &&
  109. this.code.equals(other.getCode()))) &&
  110. ((this.errorInfo==null && other.getErrorInfo()==null) ||
  111. (this.errorInfo!=null &&
  112. this.errorInfo.equals(other.getErrorInfo()))) &&
  113. ((this.msg==null && other.getMsg()==null) ||
  114. (this.msg!=null &&
  115. this.msg.equals(other.getMsg()))) &&
  116. ((this.result==null && other.getResult()==null) ||
  117. (this.result!=null &&
  118. java.util.Arrays.equals(this.result, other.getResult())));
  119. __equalsCalc = null;
  120. return _equals;
  121. }
  122. private boolean __hashCodeCalc = false;
  123. public synchronized int hashCode() {
  124. if (__hashCodeCalc) {
  125. return 0;
  126. }
  127. __hashCodeCalc = true;
  128. int _hashCode = 1;
  129. if (getCode() != null) {
  130. _hashCode += getCode().hashCode();
  131. }
  132. if (getErrorInfo() != null) {
  133. _hashCode += getErrorInfo().hashCode();
  134. }
  135. if (getMsg() != null) {
  136. _hashCode += getMsg().hashCode();
  137. }
  138. if (getResult() != null) {
  139. for (int i=0;
  140. i<java.lang.reflect.Array.getLength(getResult());
  141. i++) {
  142. Object obj = java.lang.reflect.Array.get(getResult(), i);
  143. if (obj != null &&
  144. !obj.getClass().isArray()) {
  145. _hashCode += obj.hashCode();
  146. }
  147. }
  148. }
  149. __hashCodeCalc = false;
  150. return _hashCode;
  151. }
  152. // Type metadata
  153. private static org.apache.axis.description.TypeDesc typeDesc =
  154. new org.apache.axis.description.TypeDesc(Result.class, true);
  155. static {
  156. typeDesc.setXmlType(new javax.xml.namespace.QName("http://webservice.sales.cos.rise.com/", "result"));
  157. org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
  158. elemField.setFieldName("code");
  159. elemField.setXmlName(new javax.xml.namespace.QName("", "code"));
  160. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  161. elemField.setMinOccurs(0);
  162. elemField.setNillable(false);
  163. typeDesc.addFieldDesc(elemField);
  164. elemField = new org.apache.axis.description.ElementDesc();
  165. elemField.setFieldName("errorInfo");
  166. elemField.setXmlName(new javax.xml.namespace.QName("", "errorInfo"));
  167. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  168. elemField.setMinOccurs(0);
  169. elemField.setNillable(false);
  170. typeDesc.addFieldDesc(elemField);
  171. elemField = new org.apache.axis.description.ElementDesc();
  172. elemField.setFieldName("msg");
  173. elemField.setXmlName(new javax.xml.namespace.QName("", "msg"));
  174. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  175. elemField.setMinOccurs(0);
  176. elemField.setNillable(false);
  177. typeDesc.addFieldDesc(elemField);
  178. elemField = new org.apache.axis.description.ElementDesc();
  179. elemField.setFieldName("result");
  180. elemField.setXmlName(new javax.xml.namespace.QName("", "result"));
  181. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "anyType"));
  182. elemField.setMinOccurs(0);
  183. elemField.setNillable(true);
  184. elemField.setMaxOccursUnbounded(true);
  185. typeDesc.addFieldDesc(elemField);
  186. }
  187. /**
  188. * Return type metadata object
  189. */
  190. public static org.apache.axis.description.TypeDesc getTypeDesc() {
  191. return typeDesc;
  192. }
  193. /**
  194. * Get Custom Serializer
  195. */
  196. public static org.apache.axis.encoding.Serializer getSerializer(
  197. String mechType,
  198. Class _javaType,
  199. javax.xml.namespace.QName _xmlType) {
  200. return
  201. new org.apache.axis.encoding.ser.BeanSerializer(
  202. _javaType, _xmlType, typeDesc);
  203. }
  204. /**
  205. * Get Custom Deserializer
  206. */
  207. public static org.apache.axis.encoding.Deserializer getDeserializer(
  208. String mechType,
  209. Class _javaType,
  210. javax.xml.namespace.QName _xmlType) {
  211. return
  212. new org.apache.axis.encoding.ser.BeanDeserializer(
  213. _javaType, _xmlType, typeDesc);
  214. }
  215. }