123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249 |
- /**
- * Result.java
- *
- * This file was auto-generated from WSDL
- * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
- */
- package com.shulead.datasync.portalcoupon;
- public class Result implements java.io.Serializable {
- private String code;
- private String errorInfo;
- private String msg;
- private Object[] result;
- public Result() {
- }
- public Result(
- String code,
- String errorInfo,
- String msg,
- Object[] result) {
- this.code = code;
- this.errorInfo = errorInfo;
- this.msg = msg;
- this.result = result;
- }
- /**
- * Gets the code value for this Result.
- *
- * @return code
- */
- public String getCode() {
- return code;
- }
- /**
- * Sets the code value for this Result.
- *
- * @param code
- */
- public void setCode(String code) {
- this.code = code;
- }
- /**
- * Gets the errorInfo value for this Result.
- *
- * @return errorInfo
- */
- public String getErrorInfo() {
- return errorInfo;
- }
- /**
- * Sets the errorInfo value for this Result.
- *
- * @param errorInfo
- */
- public void setErrorInfo(String errorInfo) {
- this.errorInfo = errorInfo;
- }
- /**
- * Gets the msg value for this Result.
- *
- * @return msg
- */
- public String getMsg() {
- return msg;
- }
- /**
- * Sets the msg value for this Result.
- *
- * @param msg
- */
- public void setMsg(String msg) {
- this.msg = msg;
- }
- /**
- * Gets the result value for this Result.
- *
- * @return result
- */
- public Object[] getResult() {
- return result;
- }
- /**
- * Sets the result value for this Result.
- *
- * @param result
- */
- public void setResult(Object[] result) {
- this.result = result;
- }
- public Object getResult(int i) {
- return this.result[i];
- }
- public void setResult(int i, Object _value) {
- this.result[i] = _value;
- }
- private Object __equalsCalc = null;
- public synchronized boolean equals(Object obj) {
- if (!(obj instanceof Result)) return false;
- Result other = (Result) obj;
- if (obj == null) return false;
- if (this == obj) return true;
- if (__equalsCalc != null) {
- return (__equalsCalc == obj);
- }
- __equalsCalc = obj;
- boolean _equals;
- _equals = true &&
- ((this.code==null && other.getCode()==null) ||
- (this.code!=null &&
- this.code.equals(other.getCode()))) &&
- ((this.errorInfo==null && other.getErrorInfo()==null) ||
- (this.errorInfo!=null &&
- this.errorInfo.equals(other.getErrorInfo()))) &&
- ((this.msg==null && other.getMsg()==null) ||
- (this.msg!=null &&
- this.msg.equals(other.getMsg()))) &&
- ((this.result==null && other.getResult()==null) ||
- (this.result!=null &&
- java.util.Arrays.equals(this.result, other.getResult())));
- __equalsCalc = null;
- return _equals;
- }
- private boolean __hashCodeCalc = false;
- public synchronized int hashCode() {
- if (__hashCodeCalc) {
- return 0;
- }
- __hashCodeCalc = true;
- int _hashCode = 1;
- if (getCode() != null) {
- _hashCode += getCode().hashCode();
- }
- if (getErrorInfo() != null) {
- _hashCode += getErrorInfo().hashCode();
- }
- if (getMsg() != null) {
- _hashCode += getMsg().hashCode();
- }
- if (getResult() != null) {
- for (int i=0;
- i<java.lang.reflect.Array.getLength(getResult());
- i++) {
- Object obj = java.lang.reflect.Array.get(getResult(), i);
- if (obj != null &&
- !obj.getClass().isArray()) {
- _hashCode += obj.hashCode();
- }
- }
- }
- __hashCodeCalc = false;
- return _hashCode;
- }
- // Type metadata
- private static org.apache.axis.description.TypeDesc typeDesc =
- new org.apache.axis.description.TypeDesc(Result.class, true);
- static {
- typeDesc.setXmlType(new javax.xml.namespace.QName("http://webservice.sales.cos.rise.com/", "result"));
- org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("code");
- elemField.setXmlName(new javax.xml.namespace.QName("", "code"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setMinOccurs(0);
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("errorInfo");
- elemField.setXmlName(new javax.xml.namespace.QName("", "errorInfo"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setMinOccurs(0);
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("msg");
- elemField.setXmlName(new javax.xml.namespace.QName("", "msg"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
- elemField.setMinOccurs(0);
- elemField.setNillable(false);
- typeDesc.addFieldDesc(elemField);
- elemField = new org.apache.axis.description.ElementDesc();
- elemField.setFieldName("result");
- elemField.setXmlName(new javax.xml.namespace.QName("", "result"));
- elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "anyType"));
- elemField.setMinOccurs(0);
- elemField.setNillable(true);
- elemField.setMaxOccursUnbounded(true);
- typeDesc.addFieldDesc(elemField);
- }
- /**
- * Return type metadata object
- */
- public static org.apache.axis.description.TypeDesc getTypeDesc() {
- return typeDesc;
- }
- /**
- * Get Custom Serializer
- */
- public static org.apache.axis.encoding.Serializer getSerializer(
- String mechType,
- Class _javaType,
- javax.xml.namespace.QName _xmlType) {
- return
- new org.apache.axis.encoding.ser.BeanSerializer(
- _javaType, _xmlType, typeDesc);
- }
- /**
- * Get Custom Deserializer
- */
- public static org.apache.axis.encoding.Deserializer getDeserializer(
- String mechType,
- Class _javaType,
- javax.xml.namespace.QName _xmlType) {
- return
- new org.apache.axis.encoding.ser.BeanDeserializer(
- _javaType, _xmlType, typeDesc);
- }
- }
|