Source code: interop/wsifserviceWrapped/ArrayOfSimpleDocument.java
1 /**
2 * ArrayOfSimpleDocument.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 ArrayOfSimpleDocument implements java.io.Serializable {
11 private interop.wsifserviceWrapped.SimpleDocument_Type[] simpleDocument;
12
13 public ArrayOfSimpleDocument() {
14 }
15
16 public interop.wsifserviceWrapped.SimpleDocument_Type[] getSimpleDocument() {
17 return simpleDocument;
18 }
19
20 public void setSimpleDocument(interop.wsifserviceWrapped.SimpleDocument_Type[] simpleDocument) {
21 this.simpleDocument = simpleDocument;
22 }
23
24 public interop.wsifserviceWrapped.SimpleDocument_Type getSimpleDocument(int i) {
25 return simpleDocument[i];
26 }
27
28 public void setSimpleDocument(int i, interop.wsifserviceWrapped.SimpleDocument_Type value) {
29 this.simpleDocument[i] = value;
30 }
31
32 private java.lang.Object __equalsCalc = null;
33 public synchronized boolean equals(java.lang.Object obj) {
34 if (!(obj instanceof ArrayOfSimpleDocument)) return false;
35 ArrayOfSimpleDocument other = (ArrayOfSimpleDocument) obj;
36 if (obj == null) return false;
37 if (this == obj) return true;
38 if (__equalsCalc != null) {
39 return (__equalsCalc == obj);
40 }
41 __equalsCalc = obj;
42 boolean _equals;
43 _equals = true &&
44 ((simpleDocument==null && other.getSimpleDocument()==null) ||
45 (simpleDocument!=null &&
46 java.util.Arrays.equals(simpleDocument, other.getSimpleDocument())));
47 __equalsCalc = null;
48 return _equals;
49 }
50
51 private boolean __hashCodeCalc = false;
52 public synchronized int hashCode() {
53 if (__hashCodeCalc) {
54 return 0;
55 }
56 __hashCodeCalc = true;
57 int _hashCode = 1;
58 if (getSimpleDocument() != null) {
59 for (int i=0;
60 i<java.lang.reflect.Array.getLength(getSimpleDocument());
61 i++) {
62 java.lang.Object obj = java.lang.reflect.Array.get(getSimpleDocument(), i);
63 if (obj != null &&
64 !obj.getClass().isArray()) {
65 _hashCode += obj.hashCode();
66 }
67 }
68 }
69 __hashCodeCalc = false;
70 return _hashCode;
71 }
72
73 // Type metadata
74 private static org.apache.axis.description.TypeDesc typeDesc =
75 new org.apache.axis.description.TypeDesc(ArrayOfSimpleDocument.class);
76
77 static {
78 org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
79 field.setFieldName("simpleDocument");
80 field.setXmlName(new javax.xml.namespace.QName("http://soapinterop.org/", "SimpleDocument"));
81 field.setMinOccursIs0(true);
82 typeDesc.addFieldDesc(field);
83 };
84
85 /**
86 * Return type metadata object
87 */
88 public static org.apache.axis.description.TypeDesc getTypeDesc() {
89 return typeDesc;
90 }
91
92 /**
93 * Get Custom Serializer
94 */
95 public static org.apache.axis.encoding.Serializer getSerializer(
96 java.lang.String mechType,
97 java.lang.Class _javaType,
98 javax.xml.namespace.QName _xmlType) {
99 return
100 new org.apache.axis.encoding.ser.BeanSerializer(
101 _javaType, _xmlType, typeDesc);
102 }
103
104 /**
105 * Get Custom Deserializer
106 */
107 public static org.apache.axis.encoding.Deserializer getDeserializer(
108 java.lang.String mechType,
109 java.lang.Class _javaType,
110 javax.xml.namespace.QName _xmlType) {
111 return
112 new org.apache.axis.encoding.ser.BeanDeserializer(
113 _javaType, _xmlType, typeDesc);
114 }
115
116 }