KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > j2ee > blueprints > admin > webservice > AdminService_OrdersTO


1 /**
2  * AdminService_OrdersTO.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis WSDL2Java emitter.
6  */

7
8 package com.sun.j2ee.blueprints.admin.webservice;
9
10 public class AdminService_OrdersTO implements java.io.Serializable {
11     private com.sun.j2ee.blueprints.admin.webservice.AdminService_Order[] orders;
12
13     public AdminService_OrdersTO() {
14     }
15
16     public com.sun.j2ee.blueprints.admin.webservice.AdminService_Order[] getOrders() {
17         return orders;
18     }
19
20     public void setOrders(com.sun.j2ee.blueprints.admin.webservice.AdminService_Order[] orders) {
21         this.orders = orders;
22     }
23
24     private java.lang.Object __equalsCalc = null;
25     public synchronized boolean equals(java.lang.Object obj) {
26         if (!(obj instanceof AdminService_OrdersTO)) return false;
27         AdminService_OrdersTO other = (AdminService_OrdersTO) obj;
28         if (obj == null) return false;
29         if (this == obj) return true;
30         if (__equalsCalc != null) {
31             return (__equalsCalc == obj);
32         }
33         __equalsCalc = obj;
34         boolean _equals;
35         _equals = true &&
36             ((this.orders==null && other.getOrders()==null) ||
37              (this.orders!=null &&
38               java.util.Arrays.equals(this.orders, other.getOrders())));
39         __equalsCalc = null;
40         return _equals;
41     }
42
43     private boolean __hashCodeCalc = false;
44     public synchronized int hashCode() {
45         if (__hashCodeCalc) {
46             return 0;
47         }
48         __hashCodeCalc = true;
49         int _hashCode = 1;
50         if (getOrders() != null) {
51             for (int i=0;
52                  i<java.lang.reflect.Array.getLength(getOrders());
53                  i++) {
54                 java.lang.Object obj = java.lang.reflect.Array.get(getOrders(), i);
55                 if (obj != null &&
56                     !obj.getClass().isArray()) {
57                     _hashCode += obj.hashCode();
58                 }
59             }
60         }
61         __hashCodeCalc = false;
62         return _hashCode;
63     }
64
65     // Type metadata
66
private static org.apache.axis.description.TypeDesc typeDesc =
67         new org.apache.axis.description.TypeDesc(AdminService_OrdersTO.class);
68
69     static {
70         typeDesc.setXmlType(new javax.xml.namespace.QName("webservice.admin.blueprints.j2ee.sun.com", "AdminService_OrdersTO"));
71         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
72         elemField.setFieldName("orders");
73         elemField.setXmlName(new javax.xml.namespace.QName("", "orders"));
74         elemField.setXmlType(new javax.xml.namespace.QName("webservice.admin.blueprints.j2ee.sun.com", "AdminService_Order"));
75         typeDesc.addFieldDesc(elemField);
76     }
77
78     /**
79      * Return type metadata object
80      */

81     public static org.apache.axis.description.TypeDesc getTypeDesc() {
82         return typeDesc;
83     }
84
85     /**
86      * Get Custom Serializer
87      */

88     public static org.apache.axis.encoding.Serializer getSerializer(
89            java.lang.String mechType,
90            java.lang.Class _javaType,
91            javax.xml.namespace.QName _xmlType) {
92         return
93           new org.apache.axis.encoding.ser.BeanSerializer(
94             _javaType, _xmlType, typeDesc);
95     }
96
97     /**
98      * Get Custom Deserializer
99      */

100     public static org.apache.axis.encoding.Deserializer getDeserializer(
101            java.lang.String mechType,
102            java.lang.Class _javaType,
103            javax.xml.namespace.QName _xmlType) {
104         return
105           new org.apache.axis.encoding.ser.BeanDeserializer(
106             _javaType, _xmlType, typeDesc);
107     }
108
109 }
110
Popular Tags