PageRenderTime 30ms CodeModel.GetById 17ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 0ms

/connector/src/main/java/com/sforce/soap/partner/Error.java

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