CreatePortalCoupon.java 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /**
  2. * CreatePortalCoupon.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.shulead.datasync.portalcoupon;
  8. public class CreatePortalCoupon implements java.io.Serializable {
  9. private PortalCouponParams params;
  10. public CreatePortalCoupon() {
  11. }
  12. public CreatePortalCoupon(
  13. PortalCouponParams params) {
  14. this.params = params;
  15. }
  16. /**
  17. * Gets the params value for this CreatePortalCoupon.
  18. *
  19. * @return params
  20. */
  21. public PortalCouponParams getParams() {
  22. return params;
  23. }
  24. /**
  25. * Sets the params value for this CreatePortalCoupon.
  26. *
  27. * @param params
  28. */
  29. public void setParams(PortalCouponParams params) {
  30. this.params = params;
  31. }
  32. private Object __equalsCalc = null;
  33. public synchronized boolean equals(Object obj) {
  34. if (!(obj instanceof CreatePortalCoupon)) return false;
  35. CreatePortalCoupon other = (CreatePortalCoupon) obj;
  36. if (obj == null) return false;
  37. if (this == obj) return true;
  38. if (__equalsCalc != null) {
  39. return (__equalsCalc == obj);
  40. }
  41. __equalsCalc = obj;
  42. boolean _equals;
  43. _equals = true &&
  44. ((this.params==null && other.getParams()==null) ||
  45. (this.params!=null &&
  46. this.params.equals(other.getParams())));
  47. __equalsCalc = null;
  48. return _equals;
  49. }
  50. private boolean __hashCodeCalc = false;
  51. public synchronized int hashCode() {
  52. if (__hashCodeCalc) {
  53. return 0;
  54. }
  55. __hashCodeCalc = true;
  56. int _hashCode = 1;
  57. if (getParams() != null) {
  58. _hashCode += getParams().hashCode();
  59. }
  60. __hashCodeCalc = false;
  61. return _hashCode;
  62. }
  63. // Type metadata
  64. private static org.apache.axis.description.TypeDesc typeDesc =
  65. new org.apache.axis.description.TypeDesc(CreatePortalCoupon.class, true);
  66. static {
  67. typeDesc.setXmlType(new javax.xml.namespace.QName("http://webservice.sales.cos.rise.com/", "createPortalCoupon"));
  68. org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
  69. elemField.setFieldName("params");
  70. elemField.setXmlName(new javax.xml.namespace.QName("", "params"));
  71. elemField.setXmlType(new javax.xml.namespace.QName("http://webservice.sales.cos.rise.com/", "portalCouponParams"));
  72. elemField.setMinOccurs(0);
  73. elemField.setNillable(false);
  74. typeDesc.addFieldDesc(elemField);
  75. }
  76. /**
  77. * Return type metadata object
  78. */
  79. public static org.apache.axis.description.TypeDesc getTypeDesc() {
  80. return typeDesc;
  81. }
  82. /**
  83. * Get Custom Serializer
  84. */
  85. public static org.apache.axis.encoding.Serializer getSerializer(
  86. String mechType,
  87. Class _javaType,
  88. javax.xml.namespace.QName _xmlType) {
  89. return
  90. new org.apache.axis.encoding.ser.BeanSerializer(
  91. _javaType, _xmlType, typeDesc);
  92. }
  93. /**
  94. * Get Custom Deserializer
  95. */
  96. public static org.apache.axis.encoding.Deserializer getDeserializer(
  97. String mechType,
  98. Class _javaType,
  99. javax.xml.namespace.QName _xmlType) {
  100. return
  101. new org.apache.axis.encoding.ser.BeanDeserializer(
  102. _javaType, _xmlType, typeDesc);
  103. }
  104. }