KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > interop > wsifserviceWrapped > ComplexDocument_Type


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

7
8 package interop.wsifserviceWrapped;
9
10 public class ComplexDocument_Type implements java.io.Serializable JavaDoc {
11     private interop.wsifserviceWrapped.ArrayOfSimpleDocument simpleDoc;
12     private interop.wsifserviceWrapped.ChildDocument child;
13     private java.lang.String JavaDoc anAttribute; // attribute
14

15     public ComplexDocument_Type() {
16     }
17
18     public interop.wsifserviceWrapped.ArrayOfSimpleDocument getSimpleDoc() {
19         return simpleDoc;
20     }
21
22     public void setSimpleDoc(interop.wsifserviceWrapped.ArrayOfSimpleDocument simpleDoc) {
23         this.simpleDoc = simpleDoc;
24     }
25
26     public interop.wsifserviceWrapped.ChildDocument getChild() {
27         return child;
28     }
29
30     public void setChild(interop.wsifserviceWrapped.ChildDocument child) {
31         this.child = child;
32     }
33
34     public java.lang.String JavaDoc getAnAttribute() {
35         return anAttribute;
36     }
37
38     public void setAnAttribute(java.lang.String JavaDoc anAttribute) {
39         this.anAttribute = anAttribute;
40     }
41
42     private java.lang.Object JavaDoc __equalsCalc = null;
43     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
44         if (!(obj instanceof ComplexDocument_Type)) return false;
45         ComplexDocument_Type other = (ComplexDocument_Type) obj;
46         if (obj == null) return false;
47         if (this == obj) return true;
48         if (__equalsCalc != null) {
49             return (__equalsCalc == obj);
50         }
51         __equalsCalc = obj;
52         boolean _equals;
53         _equals = true &&
54             ((simpleDoc==null && other.getSimpleDoc()==null) ||
55              (simpleDoc!=null &&
56               simpleDoc.equals(other.getSimpleDoc()))) &&
57             ((child==null && other.getChild()==null) ||
58              (child!=null &&
59               child.equals(other.getChild()))) &&
60             ((anAttribute==null && other.getAnAttribute()==null) ||
61              (anAttribute!=null &&
62               anAttribute.equals(other.getAnAttribute())));
63         __equalsCalc = null;
64         return _equals;
65     }
66
67     private boolean __hashCodeCalc = false;
68     public synchronized int hashCode() {
69         if (__hashCodeCalc) {
70             return 0;
71         }
72         __hashCodeCalc = true;
73         int _hashCode = 1;
74         if (getSimpleDoc() != null) {
75             _hashCode += getSimpleDoc().hashCode();
76         }
77         if (getChild() != null) {
78             _hashCode += getChild().hashCode();
79         }
80         if (getAnAttribute() != null) {
81             _hashCode += getAnAttribute().hashCode();
82         }
83         __hashCodeCalc = false;
84         return _hashCode;
85     }
86
87     // Type metadata
88
private static org.apache.axis.description.TypeDesc typeDesc =
89         new org.apache.axis.description.TypeDesc(ComplexDocument_Type.class);
90
91     static {
92         org.apache.axis.description.FieldDesc field = new org.apache.axis.description.AttributeDesc();
93         field.setFieldName("anAttribute");
94         field.setXmlName(new javax.xml.namespace.QName JavaDoc("", "AnAttribute"));
95         field.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
96         typeDesc.addFieldDesc(field);
97         field = new org.apache.axis.description.ElementDesc();
98         field.setFieldName("simpleDoc");
99         field.setXmlName(new javax.xml.namespace.QName JavaDoc("http://soapinterop.org/", "simpleDoc"));
100         field.setXmlType(new javax.xml.namespace.QName JavaDoc("http://soapinterop.org/", "ArrayOfSimpleDocument"));
101         field.setMinOccursIs0(true);
102         typeDesc.addFieldDesc(field);
103         field = new org.apache.axis.description.ElementDesc();
104         field.setFieldName("child");
105         field.setXmlName(new javax.xml.namespace.QName JavaDoc("http://soapinterop.org/", "child"));
106         field.setXmlType(new javax.xml.namespace.QName JavaDoc("http://soapinterop.org/", "ChildDocument"));
107         field.setMinOccursIs0(true);
108         typeDesc.addFieldDesc(field);
109     };
110
111     /**
112      * Return type metadata object
113      */

114     public static org.apache.axis.description.TypeDesc getTypeDesc() {
115         return typeDesc;
116     }
117
118     /**
119      * Get Custom Serializer
120      */

121     public static org.apache.axis.encoding.Serializer getSerializer(
122            java.lang.String JavaDoc mechType,
123            java.lang.Class JavaDoc _javaType,
124            javax.xml.namespace.QName JavaDoc _xmlType) {
125         return
126           new org.apache.axis.encoding.ser.BeanSerializer(
127             _javaType, _xmlType, typeDesc);
128     }
129
130     /**
131      * Get Custom Deserializer
132      */

133     public static org.apache.axis.encoding.Deserializer getDeserializer(
134            java.lang.String JavaDoc mechType,
135            java.lang.Class JavaDoc _javaType,
136            javax.xml.namespace.QName JavaDoc _xmlType) {
137         return
138           new org.apache.axis.encoding.ser.BeanDeserializer(
139             _javaType, _xmlType, typeDesc);
140     }
141
142 }
143
Popular Tags