/OWSM_AXIS/AxisClient/src/osb_cookbook/customer/CustomerTyp.java

https://github.com/biemond/soa11g_examples · Java · 412 lines · 250 code · 56 blank · 106 comment · 46 complexity · 361a6214b17a75dc20899ee30a121a29 MD5 · raw file

  1. /**
  2. * CustomerTyp.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 osb_cookbook.customer;
  8. public class CustomerTyp implements java.io.Serializable {
  9. private long ID;
  10. private java.lang.String firstName;
  11. private java.lang.String lastName;
  12. private java.lang.String emailAddress;
  13. private osb_cookbook.customer.AddressTyp[] addresses;
  14. private java.util.Date birthDate;
  15. private osb_cookbook.customer.RatingTyp rating;
  16. private java.lang.String gender;
  17. private osb_cookbook.creditcard.CreditCardTyp creditCard;
  18. public CustomerTyp() {
  19. }
  20. public CustomerTyp(
  21. long ID,
  22. java.lang.String firstName,
  23. java.lang.String lastName,
  24. java.lang.String emailAddress,
  25. osb_cookbook.customer.AddressTyp[] addresses,
  26. java.util.Date birthDate,
  27. osb_cookbook.customer.RatingTyp rating,
  28. java.lang.String gender,
  29. osb_cookbook.creditcard.CreditCardTyp creditCard) {
  30. this.ID = ID;
  31. this.firstName = firstName;
  32. this.lastName = lastName;
  33. this.emailAddress = emailAddress;
  34. this.addresses = addresses;
  35. this.birthDate = birthDate;
  36. this.rating = rating;
  37. this.gender = gender;
  38. this.creditCard = creditCard;
  39. }
  40. /**
  41. * Gets the ID value for this CustomerTyp.
  42. *
  43. * @return ID
  44. */
  45. public long getID() {
  46. return ID;
  47. }
  48. /**
  49. * Sets the ID value for this CustomerTyp.
  50. *
  51. * @param ID
  52. */
  53. public void setID(long ID) {
  54. this.ID = ID;
  55. }
  56. /**
  57. * Gets the firstName value for this CustomerTyp.
  58. *
  59. * @return firstName
  60. */
  61. public java.lang.String getFirstName() {
  62. return firstName;
  63. }
  64. /**
  65. * Sets the firstName value for this CustomerTyp.
  66. *
  67. * @param firstName
  68. */
  69. public void setFirstName(java.lang.String firstName) {
  70. this.firstName = firstName;
  71. }
  72. /**
  73. * Gets the lastName value for this CustomerTyp.
  74. *
  75. * @return lastName
  76. */
  77. public java.lang.String getLastName() {
  78. return lastName;
  79. }
  80. /**
  81. * Sets the lastName value for this CustomerTyp.
  82. *
  83. * @param lastName
  84. */
  85. public void setLastName(java.lang.String lastName) {
  86. this.lastName = lastName;
  87. }
  88. /**
  89. * Gets the emailAddress value for this CustomerTyp.
  90. *
  91. * @return emailAddress
  92. */
  93. public java.lang.String getEmailAddress() {
  94. return emailAddress;
  95. }
  96. /**
  97. * Sets the emailAddress value for this CustomerTyp.
  98. *
  99. * @param emailAddress
  100. */
  101. public void setEmailAddress(java.lang.String emailAddress) {
  102. this.emailAddress = emailAddress;
  103. }
  104. /**
  105. * Gets the addresses value for this CustomerTyp.
  106. *
  107. * @return addresses
  108. */
  109. public osb_cookbook.customer.AddressTyp[] getAddresses() {
  110. return addresses;
  111. }
  112. /**
  113. * Sets the addresses value for this CustomerTyp.
  114. *
  115. * @param addresses
  116. */
  117. public void setAddresses(osb_cookbook.customer.AddressTyp[] addresses) {
  118. this.addresses = addresses;
  119. }
  120. /**
  121. * Gets the birthDate value for this CustomerTyp.
  122. *
  123. * @return birthDate
  124. */
  125. public java.util.Date getBirthDate() {
  126. return birthDate;
  127. }
  128. /**
  129. * Sets the birthDate value for this CustomerTyp.
  130. *
  131. * @param birthDate
  132. */
  133. public void setBirthDate(java.util.Date birthDate) {
  134. this.birthDate = birthDate;
  135. }
  136. /**
  137. * Gets the rating value for this CustomerTyp.
  138. *
  139. * @return rating
  140. */
  141. public osb_cookbook.customer.RatingTyp getRating() {
  142. return rating;
  143. }
  144. /**
  145. * Sets the rating value for this CustomerTyp.
  146. *
  147. * @param rating
  148. */
  149. public void setRating(osb_cookbook.customer.RatingTyp rating) {
  150. this.rating = rating;
  151. }
  152. /**
  153. * Gets the gender value for this CustomerTyp.
  154. *
  155. * @return gender
  156. */
  157. public java.lang.String getGender() {
  158. return gender;
  159. }
  160. /**
  161. * Sets the gender value for this CustomerTyp.
  162. *
  163. * @param gender
  164. */
  165. public void setGender(java.lang.String gender) {
  166. this.gender = gender;
  167. }
  168. /**
  169. * Gets the creditCard value for this CustomerTyp.
  170. *
  171. * @return creditCard
  172. */
  173. public osb_cookbook.creditcard.CreditCardTyp getCreditCard() {
  174. return creditCard;
  175. }
  176. /**
  177. * Sets the creditCard value for this CustomerTyp.
  178. *
  179. * @param creditCard
  180. */
  181. public void setCreditCard(osb_cookbook.creditcard.CreditCardTyp creditCard) {
  182. this.creditCard = creditCard;
  183. }
  184. private java.lang.Object __equalsCalc = null;
  185. public synchronized boolean equals(java.lang.Object obj) {
  186. if (!(obj instanceof CustomerTyp)) return false;
  187. CustomerTyp other = (CustomerTyp) obj;
  188. if (obj == null) return false;
  189. if (this == obj) return true;
  190. if (__equalsCalc != null) {
  191. return (__equalsCalc == obj);
  192. }
  193. __equalsCalc = obj;
  194. boolean _equals;
  195. _equals = true &&
  196. this.ID == other.getID() &&
  197. ((this.firstName==null && other.getFirstName()==null) ||
  198. (this.firstName!=null &&
  199. this.firstName.equals(other.getFirstName()))) &&
  200. ((this.lastName==null && other.getLastName()==null) ||
  201. (this.lastName!=null &&
  202. this.lastName.equals(other.getLastName()))) &&
  203. ((this.emailAddress==null && other.getEmailAddress()==null) ||
  204. (this.emailAddress!=null &&
  205. this.emailAddress.equals(other.getEmailAddress()))) &&
  206. ((this.addresses==null && other.getAddresses()==null) ||
  207. (this.addresses!=null &&
  208. java.util.Arrays.equals(this.addresses, other.getAddresses()))) &&
  209. ((this.birthDate==null && other.getBirthDate()==null) ||
  210. (this.birthDate!=null &&
  211. this.birthDate.equals(other.getBirthDate()))) &&
  212. ((this.rating==null && other.getRating()==null) ||
  213. (this.rating!=null &&
  214. this.rating.equals(other.getRating()))) &&
  215. ((this.gender==null && other.getGender()==null) ||
  216. (this.gender!=null &&
  217. this.gender.equals(other.getGender()))) &&
  218. ((this.creditCard==null && other.getCreditCard()==null) ||
  219. (this.creditCard!=null &&
  220. this.creditCard.equals(other.getCreditCard())));
  221. __equalsCalc = null;
  222. return _equals;
  223. }
  224. private boolean __hashCodeCalc = false;
  225. public synchronized int hashCode() {
  226. if (__hashCodeCalc) {
  227. return 0;
  228. }
  229. __hashCodeCalc = true;
  230. int _hashCode = 1;
  231. _hashCode += new Long(getID()).hashCode();
  232. if (getFirstName() != null) {
  233. _hashCode += getFirstName().hashCode();
  234. }
  235. if (getLastName() != null) {
  236. _hashCode += getLastName().hashCode();
  237. }
  238. if (getEmailAddress() != null) {
  239. _hashCode += getEmailAddress().hashCode();
  240. }
  241. if (getAddresses() != null) {
  242. for (int i=0;
  243. i<java.lang.reflect.Array.getLength(getAddresses());
  244. i++) {
  245. java.lang.Object obj = java.lang.reflect.Array.get(getAddresses(), i);
  246. if (obj != null &&
  247. !obj.getClass().isArray()) {
  248. _hashCode += obj.hashCode();
  249. }
  250. }
  251. }
  252. if (getBirthDate() != null) {
  253. _hashCode += getBirthDate().hashCode();
  254. }
  255. if (getRating() != null) {
  256. _hashCode += getRating().hashCode();
  257. }
  258. if (getGender() != null) {
  259. _hashCode += getGender().hashCode();
  260. }
  261. if (getCreditCard() != null) {
  262. _hashCode += getCreditCard().hashCode();
  263. }
  264. __hashCodeCalc = false;
  265. return _hashCode;
  266. }
  267. // Type metadata
  268. private static org.apache.axis.description.TypeDesc typeDesc =
  269. new org.apache.axis.description.TypeDesc(CustomerTyp.class, true);
  270. static {
  271. typeDesc.setXmlType(new javax.xml.namespace.QName("http://osb-cookbook/customer", "CustomerTyp"));
  272. org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
  273. elemField.setFieldName("ID");
  274. elemField.setXmlName(new javax.xml.namespace.QName("http://osb-cookbook/customer", "ID"));
  275. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
  276. elemField.setNillable(false);
  277. typeDesc.addFieldDesc(elemField);
  278. elemField = new org.apache.axis.description.ElementDesc();
  279. elemField.setFieldName("firstName");
  280. elemField.setXmlName(new javax.xml.namespace.QName("http://osb-cookbook/customer", "FirstName"));
  281. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  282. elemField.setNillable(false);
  283. typeDesc.addFieldDesc(elemField);
  284. elemField = new org.apache.axis.description.ElementDesc();
  285. elemField.setFieldName("lastName");
  286. elemField.setXmlName(new javax.xml.namespace.QName("http://osb-cookbook/customer", "LastName"));
  287. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  288. elemField.setNillable(false);
  289. typeDesc.addFieldDesc(elemField);
  290. elemField = new org.apache.axis.description.ElementDesc();
  291. elemField.setFieldName("emailAddress");
  292. elemField.setXmlName(new javax.xml.namespace.QName("http://osb-cookbook/customer", "EmailAddress"));
  293. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  294. elemField.setNillable(false);
  295. typeDesc.addFieldDesc(elemField);
  296. elemField = new org.apache.axis.description.ElementDesc();
  297. elemField.setFieldName("addresses");
  298. elemField.setXmlName(new javax.xml.namespace.QName("http://osb-cookbook/customer", "Addresses"));
  299. elemField.setXmlType(new javax.xml.namespace.QName("http://osb-cookbook/customer", "AddressTyp"));
  300. elemField.setNillable(false);
  301. elemField.setItemQName(new javax.xml.namespace.QName("http://osb-cookbook/customer", "Address"));
  302. typeDesc.addFieldDesc(elemField);
  303. elemField = new org.apache.axis.description.ElementDesc();
  304. elemField.setFieldName("birthDate");
  305. elemField.setXmlName(new javax.xml.namespace.QName("http://osb-cookbook/customer", "BirthDate"));
  306. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "date"));
  307. elemField.setNillable(false);
  308. typeDesc.addFieldDesc(elemField);
  309. elemField = new org.apache.axis.description.ElementDesc();
  310. elemField.setFieldName("rating");
  311. elemField.setXmlName(new javax.xml.namespace.QName("http://osb-cookbook/customer", "Rating"));
  312. elemField.setXmlType(new javax.xml.namespace.QName("http://osb-cookbook/customer", "RatingTyp"));
  313. elemField.setNillable(false);
  314. typeDesc.addFieldDesc(elemField);
  315. elemField = new org.apache.axis.description.ElementDesc();
  316. elemField.setFieldName("gender");
  317. elemField.setXmlName(new javax.xml.namespace.QName("http://osb-cookbook/customer", "Gender"));
  318. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  319. elemField.setNillable(false);
  320. typeDesc.addFieldDesc(elemField);
  321. elemField = new org.apache.axis.description.ElementDesc();
  322. elemField.setFieldName("creditCard");
  323. elemField.setXmlName(new javax.xml.namespace.QName("http://osb-cookbook/customer", "CreditCard"));
  324. elemField.setXmlType(new javax.xml.namespace.QName("http://osb-cookbook/creditcard", "CreditCardTyp"));
  325. elemField.setNillable(false);
  326. typeDesc.addFieldDesc(elemField);
  327. }
  328. /**
  329. * Return type metadata object
  330. */
  331. public static org.apache.axis.description.TypeDesc getTypeDesc() {
  332. return typeDesc;
  333. }
  334. /**
  335. * Get Custom Serializer
  336. */
  337. public static org.apache.axis.encoding.Serializer getSerializer(
  338. java.lang.String mechType,
  339. java.lang.Class _javaType,
  340. javax.xml.namespace.QName _xmlType) {
  341. return
  342. new org.apache.axis.encoding.ser.BeanSerializer(
  343. _javaType, _xmlType, typeDesc);
  344. }
  345. /**
  346. * Get Custom Deserializer
  347. */
  348. public static org.apache.axis.encoding.Deserializer getDeserializer(
  349. java.lang.String mechType,
  350. java.lang.Class _javaType,
  351. javax.xml.namespace.QName _xmlType) {
  352. return
  353. new org.apache.axis.encoding.ser.BeanDeserializer(
  354. _javaType, _xmlType, typeDesc);
  355. }
  356. }