001: /**
002: * AdminService_OrderApprovalTO.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis WSDL2Java emitter.
006: */package com.sun.j2ee.blueprints.admin.webservice;
007:
008: public class AdminService_OrderApprovalTO implements
009: java.io.Serializable {
010: private java.lang.String[] statuses;
011: private java.lang.String[] orderIds;
012:
013: public AdminService_OrderApprovalTO() {
014: }
015:
016: public java.lang.String[] getStatuses() {
017: return statuses;
018: }
019:
020: public void setStatuses(java.lang.String[] statuses) {
021: this .statuses = statuses;
022: }
023:
024: public java.lang.String[] getOrderIds() {
025: return orderIds;
026: }
027:
028: public void setOrderIds(java.lang.String[] orderIds) {
029: this .orderIds = orderIds;
030: }
031:
032: private java.lang.Object __equalsCalc = null;
033:
034: public synchronized boolean equals(java.lang.Object obj) {
035: if (!(obj instanceof AdminService_OrderApprovalTO))
036: return false;
037: AdminService_OrderApprovalTO other = (AdminService_OrderApprovalTO) obj;
038: if (obj == null)
039: return false;
040: if (this == obj)
041: return true;
042: if (__equalsCalc != null) {
043: return (__equalsCalc == obj);
044: }
045: __equalsCalc = obj;
046: boolean _equals;
047: _equals = true
048: && ((this .statuses == null && other.getStatuses() == null) || (this .statuses != null && java.util.Arrays
049: .equals(this .statuses, other.getStatuses())))
050: && ((this .orderIds == null && other.getOrderIds() == null) || (this .orderIds != null && java.util.Arrays
051: .equals(this .orderIds, other.getOrderIds())));
052: __equalsCalc = null;
053: return _equals;
054: }
055:
056: private boolean __hashCodeCalc = false;
057:
058: public synchronized int hashCode() {
059: if (__hashCodeCalc) {
060: return 0;
061: }
062: __hashCodeCalc = true;
063: int _hashCode = 1;
064: if (getStatuses() != null) {
065: for (int i = 0; i < java.lang.reflect.Array
066: .getLength(getStatuses()); i++) {
067: java.lang.Object obj = java.lang.reflect.Array.get(
068: getStatuses(), i);
069: if (obj != null && !obj.getClass().isArray()) {
070: _hashCode += obj.hashCode();
071: }
072: }
073: }
074: if (getOrderIds() != null) {
075: for (int i = 0; i < java.lang.reflect.Array
076: .getLength(getOrderIds()); i++) {
077: java.lang.Object obj = java.lang.reflect.Array.get(
078: getOrderIds(), 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: AdminService_OrderApprovalTO.class);
091:
092: static {
093: typeDesc.setXmlType(new javax.xml.namespace.QName(
094: "webservice.admin.blueprints.j2ee.sun.com",
095: "AdminService_OrderApprovalTO"));
096: org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
097: elemField.setFieldName("statuses");
098: elemField.setXmlName(new javax.xml.namespace.QName("",
099: "statuses"));
100: elemField.setXmlType(new javax.xml.namespace.QName(
101: "http://www.w3.org/2001/XMLSchema", "string"));
102: typeDesc.addFieldDesc(elemField);
103: elemField = new org.apache.axis.description.ElementDesc();
104: elemField.setFieldName("orderIds");
105: elemField.setXmlName(new javax.xml.namespace.QName("",
106: "orderIds"));
107: elemField.setXmlType(new javax.xml.namespace.QName(
108: "http://www.w3.org/2001/XMLSchema", "string"));
109: typeDesc.addFieldDesc(elemField);
110: }
111:
112: /**
113: * Return type metadata object
114: */
115: public static org.apache.axis.description.TypeDesc getTypeDesc() {
116: return typeDesc;
117: }
118:
119: /**
120: * Get Custom Serializer
121: */
122: public static org.apache.axis.encoding.Serializer getSerializer(
123: java.lang.String mechType, java.lang.Class _javaType,
124: javax.xml.namespace.QName _xmlType) {
125: return new org.apache.axis.encoding.ser.BeanSerializer(
126: _javaType, _xmlType, typeDesc);
127: }
128:
129: /**
130: * Get Custom Deserializer
131: */
132: public static org.apache.axis.encoding.Deserializer getDeserializer(
133: java.lang.String mechType, java.lang.Class _javaType,
134: javax.xml.namespace.QName _xmlType) {
135: return new org.apache.axis.encoding.ser.BeanDeserializer(
136: _javaType, _xmlType, typeDesc);
137: }
138:
139: }
|