001: /**
002: * SalesOrderItems.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 SalesOrderItems implements java.io.Serializable {
009: private com.def.webstore.SalesOrderItemsItem[] item;
010:
011: public SalesOrderItems() {
012: }
013:
014: public SalesOrderItems(com.def.webstore.SalesOrderItemsItem[] item) {
015: this .item = item;
016: }
017:
018: /**
019: * Gets the item value for this SalesOrderItems.
020: *
021: * @return item
022: */
023: public com.def.webstore.SalesOrderItemsItem[] getItem() {
024: return item;
025: }
026:
027: /**
028: * Sets the item value for this SalesOrderItems.
029: *
030: * @param item
031: */
032: public void setItem(com.def.webstore.SalesOrderItemsItem[] item) {
033: this .item = item;
034: }
035:
036: public com.def.webstore.SalesOrderItemsItem getItem(int i) {
037: return this .item[i];
038: }
039:
040: public void setItem(int i,
041: com.def.webstore.SalesOrderItemsItem _value) {
042: this .item[i] = _value;
043: }
044:
045: private java.lang.Object __equalsCalc = null;
046:
047: public synchronized boolean equals(java.lang.Object obj) {
048: if (!(obj instanceof SalesOrderItems))
049: return false;
050: SalesOrderItems other = (SalesOrderItems) obj;
051: if (obj == null)
052: return false;
053: if (this == obj)
054: return true;
055: if (__equalsCalc != null) {
056: return (__equalsCalc == obj);
057: }
058: __equalsCalc = obj;
059: boolean _equals;
060: _equals = true && ((this .item == null && other.getItem() == null) || (this .item != null && java.util.Arrays
061: .equals(this .item, other.getItem())));
062: __equalsCalc = null;
063: return _equals;
064: }
065:
066: private boolean __hashCodeCalc = false;
067:
068: public synchronized int hashCode() {
069: if (__hashCodeCalc) {
070: return 0;
071: }
072: __hashCodeCalc = true;
073: int _hashCode = 1;
074: if (getItem() != null) {
075: for (int i = 0; i < java.lang.reflect.Array
076: .getLength(getItem()); i++) {
077: java.lang.Object obj = java.lang.reflect.Array.get(
078: getItem(), i);
079: if (obj != null && !obj.getClass().isArray()) {
080: _hashCode += obj.hashCode();
081: }
082: }
083: }
084: __hashCodeCalc = false;
085: return _hashCode;
086: }
087:
088: // Type metadata
089: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
090: SalesOrderItems.class, true);
091:
092: static {
093: typeDesc.setXmlType(new javax.xml.namespace.QName(
094: "http://www.def.com/2004/pub/sales",
095: ">>sales-order>items"));
096: org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
097: elemField.setFieldName("item");
098: elemField.setXmlName(new javax.xml.namespace.QName(
099: "http://www.def.com/2004/pub/sales", "item"));
100: elemField.setXmlType(new javax.xml.namespace.QName(
101: "http://www.def.com/2004/pub/sales",
102: ">>>sales-order>items>item"));
103: elemField.setNillable(false);
104: elemField.setMaxOccursUnbounded(true);
105: typeDesc.addFieldDesc(elemField);
106: }
107:
108: /**
109: * Return type metadata object
110: */
111: public static org.apache.axis.description.TypeDesc getTypeDesc() {
112: return typeDesc;
113: }
114:
115: /**
116: * Get Custom Serializer
117: */
118: public static org.apache.axis.encoding.Serializer getSerializer(
119: java.lang.String mechType, java.lang.Class _javaType,
120: javax.xml.namespace.QName _xmlType) {
121: return new org.apache.axis.encoding.ser.BeanSerializer(
122: _javaType, _xmlType, typeDesc);
123: }
124:
125: /**
126: * Get Custom Deserializer
127: */
128: public static org.apache.axis.encoding.Deserializer getDeserializer(
129: java.lang.String mechType, java.lang.Class _javaType,
130: javax.xml.namespace.QName _xmlType) {
131: return new org.apache.axis.encoding.ser.BeanDeserializer(
132: _javaType, _xmlType, typeDesc);
133: }
134:
135: }
|