001: /**
002: * AdminService_OrdersTO.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_OrdersTO implements java.io.Serializable {
009: private com.sun.j2ee.blueprints.admin.webservice.AdminService_Order[] orders;
010:
011: public AdminService_OrdersTO() {
012: }
013:
014: public com.sun.j2ee.blueprints.admin.webservice.AdminService_Order[] getOrders() {
015: return orders;
016: }
017:
018: public void setOrders(
019: com.sun.j2ee.blueprints.admin.webservice.AdminService_Order[] orders) {
020: this .orders = orders;
021: }
022:
023: private java.lang.Object __equalsCalc = null;
024:
025: public synchronized boolean equals(java.lang.Object obj) {
026: if (!(obj instanceof AdminService_OrdersTO))
027: return false;
028: AdminService_OrdersTO other = (AdminService_OrdersTO) obj;
029: if (obj == null)
030: return false;
031: if (this == obj)
032: return true;
033: if (__equalsCalc != null) {
034: return (__equalsCalc == obj);
035: }
036: __equalsCalc = obj;
037: boolean _equals;
038: _equals = true && ((this .orders == null && other.getOrders() == null) || (this .orders != null && java.util.Arrays
039: .equals(this .orders, other.getOrders())));
040: __equalsCalc = null;
041: return _equals;
042: }
043:
044: private boolean __hashCodeCalc = false;
045:
046: public synchronized int hashCode() {
047: if (__hashCodeCalc) {
048: return 0;
049: }
050: __hashCodeCalc = true;
051: int _hashCode = 1;
052: if (getOrders() != null) {
053: for (int i = 0; i < java.lang.reflect.Array
054: .getLength(getOrders()); i++) {
055: java.lang.Object obj = java.lang.reflect.Array.get(
056: getOrders(), i);
057: if (obj != null && !obj.getClass().isArray()) {
058: _hashCode += obj.hashCode();
059: }
060: }
061: }
062: __hashCodeCalc = false;
063: return _hashCode;
064: }
065:
066: // Type metadata
067: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
068: AdminService_OrdersTO.class);
069:
070: static {
071: typeDesc.setXmlType(new javax.xml.namespace.QName(
072: "webservice.admin.blueprints.j2ee.sun.com",
073: "AdminService_OrdersTO"));
074: org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
075: elemField.setFieldName("orders");
076: elemField
077: .setXmlName(new javax.xml.namespace.QName("", "orders"));
078: elemField.setXmlType(new javax.xml.namespace.QName(
079: "webservice.admin.blueprints.j2ee.sun.com",
080: "AdminService_Order"));
081: typeDesc.addFieldDesc(elemField);
082: }
083:
084: /**
085: * Return type metadata object
086: */
087: public static org.apache.axis.description.TypeDesc getTypeDesc() {
088: return typeDesc;
089: }
090:
091: /**
092: * Get Custom Serializer
093: */
094: public static org.apache.axis.encoding.Serializer getSerializer(
095: java.lang.String mechType, java.lang.Class _javaType,
096: javax.xml.namespace.QName _xmlType) {
097: return new org.apache.axis.encoding.ser.BeanSerializer(
098: _javaType, _xmlType, typeDesc);
099: }
100:
101: /**
102: * Get Custom Deserializer
103: */
104: public static org.apache.axis.encoding.Deserializer getDeserializer(
105: java.lang.String mechType, java.lang.Class _javaType,
106: javax.xml.namespace.QName _xmlType) {
107: return new org.apache.axis.encoding.ser.BeanDeserializer(
108: _javaType, _xmlType, typeDesc);
109: }
110:
111: }
|