PageRenderTime 52ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://github.com/chrbayer84/GoodData-CL
Java | 387 lines | 247 code | 54 blank | 86 comment | 55 complexity | 6a180625d0d7f38041500f649ebc6f4b MD5 | raw file
Possible License(s): BSD-3-Clause
  1. /**
  2. * ProcessResult.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 ProcessResult implements java.io.Serializable {
  9. private java.lang.String[] actorIds;
  10. private java.lang.String entityId;
  11. private com.sforce.soap.partner.Error[] errors;
  12. private java.lang.String instanceId;
  13. private java.lang.String instanceStatus;
  14. private java.lang.String[] newWorkitemIds;
  15. private boolean success;
  16. public ProcessResult() {
  17. }
  18. public ProcessResult(
  19. java.lang.String[] actorIds,
  20. java.lang.String entityId,
  21. com.sforce.soap.partner.Error[] errors,
  22. java.lang.String instanceId,
  23. java.lang.String instanceStatus,
  24. java.lang.String[] newWorkitemIds,
  25. boolean success) {
  26. this.actorIds = actorIds;
  27. this.entityId = entityId;
  28. this.errors = errors;
  29. this.instanceId = instanceId;
  30. this.instanceStatus = instanceStatus;
  31. this.newWorkitemIds = newWorkitemIds;
  32. this.success = success;
  33. }
  34. /**
  35. * Gets the actorIds value for this ProcessResult.
  36. *
  37. * @return actorIds
  38. */
  39. public java.lang.String[] getActorIds() {
  40. return actorIds;
  41. }
  42. /**
  43. * Sets the actorIds value for this ProcessResult.
  44. *
  45. * @param actorIds
  46. */
  47. public void setActorIds(java.lang.String[] actorIds) {
  48. this.actorIds = actorIds;
  49. }
  50. public java.lang.String getActorIds(int i) {
  51. return this.actorIds[i];
  52. }
  53. public void setActorIds(int i, java.lang.String _value) {
  54. this.actorIds[i] = _value;
  55. }
  56. /**
  57. * Gets the entityId value for this ProcessResult.
  58. *
  59. * @return entityId
  60. */
  61. public java.lang.String getEntityId() {
  62. return entityId;
  63. }
  64. /**
  65. * Sets the entityId value for this ProcessResult.
  66. *
  67. * @param entityId
  68. */
  69. public void setEntityId(java.lang.String entityId) {
  70. this.entityId = entityId;
  71. }
  72. /**
  73. * Gets the errors value for this ProcessResult.
  74. *
  75. * @return errors
  76. */
  77. public com.sforce.soap.partner.Error[] getErrors() {
  78. return errors;
  79. }
  80. /**
  81. * Sets the errors value for this ProcessResult.
  82. *
  83. * @param errors
  84. */
  85. public void setErrors(com.sforce.soap.partner.Error[] errors) {
  86. this.errors = errors;
  87. }
  88. public com.sforce.soap.partner.Error getErrors(int i) {
  89. return this.errors[i];
  90. }
  91. public void setErrors(int i, com.sforce.soap.partner.Error _value) {
  92. this.errors[i] = _value;
  93. }
  94. /**
  95. * Gets the instanceId value for this ProcessResult.
  96. *
  97. * @return instanceId
  98. */
  99. public java.lang.String getInstanceId() {
  100. return instanceId;
  101. }
  102. /**
  103. * Sets the instanceId value for this ProcessResult.
  104. *
  105. * @param instanceId
  106. */
  107. public void setInstanceId(java.lang.String instanceId) {
  108. this.instanceId = instanceId;
  109. }
  110. /**
  111. * Gets the instanceStatus value for this ProcessResult.
  112. *
  113. * @return instanceStatus
  114. */
  115. public java.lang.String getInstanceStatus() {
  116. return instanceStatus;
  117. }
  118. /**
  119. * Sets the instanceStatus value for this ProcessResult.
  120. *
  121. * @param instanceStatus
  122. */
  123. public void setInstanceStatus(java.lang.String instanceStatus) {
  124. this.instanceStatus = instanceStatus;
  125. }
  126. /**
  127. * Gets the newWorkitemIds value for this ProcessResult.
  128. *
  129. * @return newWorkitemIds
  130. */
  131. public java.lang.String[] getNewWorkitemIds() {
  132. return newWorkitemIds;
  133. }
  134. /**
  135. * Sets the newWorkitemIds value for this ProcessResult.
  136. *
  137. * @param newWorkitemIds
  138. */
  139. public void setNewWorkitemIds(java.lang.String[] newWorkitemIds) {
  140. this.newWorkitemIds = newWorkitemIds;
  141. }
  142. public java.lang.String getNewWorkitemIds(int i) {
  143. return this.newWorkitemIds[i];
  144. }
  145. public void setNewWorkitemIds(int i, java.lang.String _value) {
  146. this.newWorkitemIds[i] = _value;
  147. }
  148. /**
  149. * Gets the success value for this ProcessResult.
  150. *
  151. * @return success
  152. */
  153. public boolean isSuccess() {
  154. return success;
  155. }
  156. /**
  157. * Sets the success value for this ProcessResult.
  158. *
  159. * @param success
  160. */
  161. public void setSuccess(boolean success) {
  162. this.success = success;
  163. }
  164. private java.lang.Object __equalsCalc = null;
  165. public synchronized boolean equals(java.lang.Object obj) {
  166. if (!(obj instanceof ProcessResult)) return false;
  167. ProcessResult other = (ProcessResult) obj;
  168. if (obj == null) return false;
  169. if (this == obj) return true;
  170. if (__equalsCalc != null) {
  171. return (__equalsCalc == obj);
  172. }
  173. __equalsCalc = obj;
  174. boolean _equals;
  175. _equals = true &&
  176. ((this.actorIds == null && other.getActorIds() == null) ||
  177. (this.actorIds != null &&
  178. java.util.Arrays.equals(this.actorIds, other.getActorIds()))) &&
  179. ((this.entityId == null && other.getEntityId() == null) ||
  180. (this.entityId != null &&
  181. this.entityId.equals(other.getEntityId()))) &&
  182. ((this.errors == null && other.getErrors() == null) ||
  183. (this.errors != null &&
  184. java.util.Arrays.equals(this.errors, other.getErrors()))) &&
  185. ((this.instanceId == null && other.getInstanceId() == null) ||
  186. (this.instanceId != null &&
  187. this.instanceId.equals(other.getInstanceId()))) &&
  188. ((this.instanceStatus == null && other.getInstanceStatus() == null) ||
  189. (this.instanceStatus != null &&
  190. this.instanceStatus.equals(other.getInstanceStatus()))) &&
  191. ((this.newWorkitemIds == null && other.getNewWorkitemIds() == null) ||
  192. (this.newWorkitemIds != null &&
  193. java.util.Arrays.equals(this.newWorkitemIds, other.getNewWorkitemIds()))) &&
  194. this.success == other.isSuccess();
  195. __equalsCalc = null;
  196. return _equals;
  197. }
  198. private boolean __hashCodeCalc = false;
  199. public synchronized int hashCode() {
  200. if (__hashCodeCalc) {
  201. return 0;
  202. }
  203. __hashCodeCalc = true;
  204. int _hashCode = 1;
  205. if (getActorIds() != null) {
  206. for (int i = 0;
  207. i < java.lang.reflect.Array.getLength(getActorIds());
  208. i++) {
  209. java.lang.Object obj = java.lang.reflect.Array.get(getActorIds(), i);
  210. if (obj != null &&
  211. !obj.getClass().isArray()) {
  212. _hashCode += obj.hashCode();
  213. }
  214. }
  215. }
  216. if (getEntityId() != null) {
  217. _hashCode += getEntityId().hashCode();
  218. }
  219. if (getErrors() != null) {
  220. for (int i = 0;
  221. i < java.lang.reflect.Array.getLength(getErrors());
  222. i++) {
  223. java.lang.Object obj = java.lang.reflect.Array.get(getErrors(), i);
  224. if (obj != null &&
  225. !obj.getClass().isArray()) {
  226. _hashCode += obj.hashCode();
  227. }
  228. }
  229. }
  230. if (getInstanceId() != null) {
  231. _hashCode += getInstanceId().hashCode();
  232. }
  233. if (getInstanceStatus() != null) {
  234. _hashCode += getInstanceStatus().hashCode();
  235. }
  236. if (getNewWorkitemIds() != null) {
  237. for (int i = 0;
  238. i < java.lang.reflect.Array.getLength(getNewWorkitemIds());
  239. i++) {
  240. java.lang.Object obj = java.lang.reflect.Array.get(getNewWorkitemIds(), i);
  241. if (obj != null &&
  242. !obj.getClass().isArray()) {
  243. _hashCode += obj.hashCode();
  244. }
  245. }
  246. }
  247. _hashCode += (isSuccess() ? Boolean.TRUE : Boolean.FALSE).hashCode();
  248. __hashCodeCalc = false;
  249. return _hashCode;
  250. }
  251. // Type metadata
  252. private static org.apache.axis.description.TypeDesc typeDesc =
  253. new org.apache.axis.description.TypeDesc(ProcessResult.class, true);
  254. static {
  255. typeDesc.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ProcessResult"));
  256. org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
  257. elemField.setFieldName("actorIds");
  258. elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "actorIds"));
  259. elemField.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID"));
  260. elemField.setMinOccurs(0);
  261. elemField.setNillable(false);
  262. elemField.setMaxOccursUnbounded(true);
  263. typeDesc.addFieldDesc(elemField);
  264. elemField = new org.apache.axis.description.ElementDesc();
  265. elemField.setFieldName("entityId");
  266. elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "entityId"));
  267. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  268. elemField.setNillable(true);
  269. typeDesc.addFieldDesc(elemField);
  270. elemField = new org.apache.axis.description.ElementDesc();
  271. elemField.setFieldName("errors");
  272. elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "errors"));
  273. elemField.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "Error"));
  274. elemField.setMinOccurs(0);
  275. elemField.setNillable(false);
  276. elemField.setMaxOccursUnbounded(true);
  277. typeDesc.addFieldDesc(elemField);
  278. elemField = new org.apache.axis.description.ElementDesc();
  279. elemField.setFieldName("instanceId");
  280. elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "instanceId"));
  281. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  282. elemField.setNillable(true);
  283. typeDesc.addFieldDesc(elemField);
  284. elemField = new org.apache.axis.description.ElementDesc();
  285. elemField.setFieldName("instanceStatus");
  286. elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "instanceStatus"));
  287. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  288. elemField.setNillable(true);
  289. typeDesc.addFieldDesc(elemField);
  290. elemField = new org.apache.axis.description.ElementDesc();
  291. elemField.setFieldName("newWorkitemIds");
  292. elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "newWorkitemIds"));
  293. elemField.setXmlType(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "ID"));
  294. elemField.setMinOccurs(0);
  295. elemField.setNillable(true);
  296. elemField.setMaxOccursUnbounded(true);
  297. typeDesc.addFieldDesc(elemField);
  298. elemField = new org.apache.axis.description.ElementDesc();
  299. elemField.setFieldName("success");
  300. elemField.setXmlName(new javax.xml.namespace.QName("urn:partner.soap.sforce.com", "success"));
  301. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
  302. elemField.setNillable(false);
  303. typeDesc.addFieldDesc(elemField);
  304. }
  305. /**
  306. * Return type metadata object
  307. */
  308. public static org.apache.axis.description.TypeDesc getTypeDesc() {
  309. return typeDesc;
  310. }
  311. /**
  312. * Get Custom Serializer
  313. */
  314. public static org.apache.axis.encoding.Serializer getSerializer(
  315. java.lang.String mechType,
  316. java.lang.Class _javaType,
  317. javax.xml.namespace.QName _xmlType) {
  318. return
  319. new org.apache.axis.encoding.ser.BeanSerializer(
  320. _javaType, _xmlType, typeDesc);
  321. }
  322. /**
  323. * Get Custom Deserializer
  324. */
  325. public static org.apache.axis.encoding.Deserializer getDeserializer(
  326. java.lang.String mechType,
  327. java.lang.Class _javaType,
  328. javax.xml.namespace.QName _xmlType) {
  329. return
  330. new org.apache.axis.encoding.ser.BeanDeserializer(
  331. _javaType, _xmlType, typeDesc);
  332. }
  333. }