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