001: /**
002: * SalesOrderItemsItem.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
006: */package com.def.webstore;
007:
008: public class SalesOrderItemsItem implements java.io.Serializable {
009: private java.lang.String sku;
010: private java.math.BigInteger qty;
011:
012: public SalesOrderItemsItem() {
013: }
014:
015: public SalesOrderItemsItem(java.lang.String sku,
016: java.math.BigInteger qty) {
017: this .sku = sku;
018: this .qty = qty;
019: }
020:
021: /**
022: * Gets the sku value for this SalesOrderItemsItem.
023: *
024: * @return sku
025: */
026: public java.lang.String getSku() {
027: return sku;
028: }
029:
030: /**
031: * Sets the sku value for this SalesOrderItemsItem.
032: *
033: * @param sku
034: */
035: public void setSku(java.lang.String sku) {
036: this .sku = sku;
037: }
038:
039: /**
040: * Gets the qty value for this SalesOrderItemsItem.
041: *
042: * @return qty
043: */
044: public java.math.BigInteger getQty() {
045: return qty;
046: }
047:
048: /**
049: * Sets the qty value for this SalesOrderItemsItem.
050: *
051: * @param qty
052: */
053: public void setQty(java.math.BigInteger qty) {
054: this .qty = qty;
055: }
056:
057: private java.lang.Object __equalsCalc = null;
058:
059: public synchronized boolean equals(java.lang.Object obj) {
060: if (!(obj instanceof SalesOrderItemsItem))
061: return false;
062: SalesOrderItemsItem other = (SalesOrderItemsItem) obj;
063: if (obj == null)
064: return false;
065: if (this == obj)
066: return true;
067: if (__equalsCalc != null) {
068: return (__equalsCalc == obj);
069: }
070: __equalsCalc = obj;
071: boolean _equals;
072: _equals = true
073: && ((this .sku == null && other.getSku() == null) || (this .sku != null && this .sku
074: .equals(other.getSku())))
075: && ((this .qty == null && other.getQty() == null) || (this .qty != null && this .qty
076: .equals(other.getQty())));
077: __equalsCalc = null;
078: return _equals;
079: }
080:
081: private boolean __hashCodeCalc = false;
082:
083: public synchronized int hashCode() {
084: if (__hashCodeCalc) {
085: return 0;
086: }
087: __hashCodeCalc = true;
088: int _hashCode = 1;
089: if (getSku() != null) {
090: _hashCode += getSku().hashCode();
091: }
092: if (getQty() != null) {
093: _hashCode += getQty().hashCode();
094: }
095: __hashCodeCalc = false;
096: return _hashCode;
097: }
098:
099: // Type metadata
100: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
101: SalesOrderItemsItem.class, true);
102:
103: static {
104: typeDesc.setXmlType(new javax.xml.namespace.QName(
105: "http://www.def.com/2004/pub/sales",
106: ">>>sales-order>items>item"));
107: org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
108: elemField.setFieldName("sku");
109: elemField.setXmlName(new javax.xml.namespace.QName(
110: "http://www.def.com/2004/pub/sales", "sku"));
111: elemField.setXmlType(new javax.xml.namespace.QName(
112: "http://www.w3.org/2001/XMLSchema", "string"));
113: elemField.setNillable(false);
114: typeDesc.addFieldDesc(elemField);
115: elemField = new org.apache.axis.description.ElementDesc();
116: elemField.setFieldName("qty");
117: elemField.setXmlName(new javax.xml.namespace.QName(
118: "http://www.def.com/2004/pub/sales", "qty"));
119: elemField.setXmlType(new javax.xml.namespace.QName(
120: "http://www.w3.org/2001/XMLSchema", "integer"));
121: elemField.setNillable(false);
122: typeDesc.addFieldDesc(elemField);
123: }
124:
125: /**
126: * Return type metadata object
127: */
128: public static org.apache.axis.description.TypeDesc getTypeDesc() {
129: return typeDesc;
130: }
131:
132: /**
133: * Get Custom Serializer
134: */
135: public static org.apache.axis.encoding.Serializer getSerializer(
136: java.lang.String mechType, java.lang.Class _javaType,
137: javax.xml.namespace.QName _xmlType) {
138: return new org.apache.axis.encoding.ser.BeanSerializer(
139: _javaType, _xmlType, typeDesc);
140: }
141:
142: /**
143: * Get Custom Deserializer
144: */
145: public static org.apache.axis.encoding.Deserializer getDeserializer(
146: java.lang.String mechType, java.lang.Class _javaType,
147: javax.xml.namespace.QName _xmlType) {
148: return new org.apache.axis.encoding.ser.BeanDeserializer(
149: _javaType, _xmlType, typeDesc);
150: }
151:
152: }
|