001: /**
002: * ArrayOfSimpleDocument.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis WSDL2Java emitter.
006: */package interop.wsifserviceWrapped;
007:
008: public class ArrayOfSimpleDocument implements java.io.Serializable {
009: private interop.wsifserviceWrapped.SimpleDocument_Type[] simpleDocument;
010:
011: public ArrayOfSimpleDocument() {
012: }
013:
014: public interop.wsifserviceWrapped.SimpleDocument_Type[] getSimpleDocument() {
015: return simpleDocument;
016: }
017:
018: public void setSimpleDocument(
019: interop.wsifserviceWrapped.SimpleDocument_Type[] simpleDocument) {
020: this .simpleDocument = simpleDocument;
021: }
022:
023: public interop.wsifserviceWrapped.SimpleDocument_Type getSimpleDocument(
024: int i) {
025: return simpleDocument[i];
026: }
027:
028: public void setSimpleDocument(int i,
029: interop.wsifserviceWrapped.SimpleDocument_Type value) {
030: this .simpleDocument[i] = value;
031: }
032:
033: private java.lang.Object __equalsCalc = null;
034:
035: public synchronized boolean equals(java.lang.Object obj) {
036: if (!(obj instanceof ArrayOfSimpleDocument))
037: return false;
038: ArrayOfSimpleDocument other = (ArrayOfSimpleDocument) obj;
039: if (obj == null)
040: return false;
041: if (this == obj)
042: return true;
043: if (__equalsCalc != null) {
044: return (__equalsCalc == obj);
045: }
046: __equalsCalc = obj;
047: boolean _equals;
048: _equals = true && ((simpleDocument == null && other
049: .getSimpleDocument() == null) || (simpleDocument != null && java.util.Arrays
050: .equals(simpleDocument, other.getSimpleDocument())));
051: __equalsCalc = null;
052: return _equals;
053: }
054:
055: private boolean __hashCodeCalc = false;
056:
057: public synchronized int hashCode() {
058: if (__hashCodeCalc) {
059: return 0;
060: }
061: __hashCodeCalc = true;
062: int _hashCode = 1;
063: if (getSimpleDocument() != null) {
064: for (int i = 0; i < java.lang.reflect.Array
065: .getLength(getSimpleDocument()); i++) {
066: java.lang.Object obj = java.lang.reflect.Array.get(
067: getSimpleDocument(), i);
068: if (obj != null && !obj.getClass().isArray()) {
069: _hashCode += obj.hashCode();
070: }
071: }
072: }
073: __hashCodeCalc = false;
074: return _hashCode;
075: }
076:
077: // Type metadata
078: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
079: ArrayOfSimpleDocument.class);
080:
081: static {
082: org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
083: field.setFieldName("simpleDocument");
084: field.setXmlName(new javax.xml.namespace.QName(
085: "http://soapinterop.org/", "SimpleDocument"));
086: field.setMinOccursIs0(true);
087: typeDesc.addFieldDesc(field);
088: };
089:
090: /**
091: * Return type metadata object
092: */
093: public static org.apache.axis.description.TypeDesc getTypeDesc() {
094: return typeDesc;
095: }
096:
097: /**
098: * Get Custom Serializer
099: */
100: public static org.apache.axis.encoding.Serializer getSerializer(
101: java.lang.String mechType, java.lang.Class _javaType,
102: javax.xml.namespace.QName _xmlType) {
103: return new org.apache.axis.encoding.ser.BeanSerializer(
104: _javaType, _xmlType, typeDesc);
105: }
106:
107: /**
108: * Get Custom Deserializer
109: */
110: public static org.apache.axis.encoding.Deserializer getDeserializer(
111: java.lang.String mechType, java.lang.Class _javaType,
112: javax.xml.namespace.QName _xmlType) {
113: return new org.apache.axis.encoding.ser.BeanDeserializer(
114: _javaType, _xmlType, typeDesc);
115: }
116:
117: }
|