PageRenderTime 72ms CodeModel.GetById 29ms RepoModel.GetById 1ms app.codeStats 0ms

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

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