001: /**
002: * ComplexDocument_Type.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 ComplexDocument_Type implements java.io.Serializable {
009: private interop.wsifserviceWrapped.ArrayOfSimpleDocument simpleDoc;
010: private interop.wsifserviceWrapped.ChildDocument child;
011: private java.lang.String anAttribute; // attribute
012:
013: public ComplexDocument_Type() {
014: }
015:
016: public interop.wsifserviceWrapped.ArrayOfSimpleDocument getSimpleDoc() {
017: return simpleDoc;
018: }
019:
020: public void setSimpleDoc(
021: interop.wsifserviceWrapped.ArrayOfSimpleDocument simpleDoc) {
022: this .simpleDoc = simpleDoc;
023: }
024:
025: public interop.wsifserviceWrapped.ChildDocument getChild() {
026: return child;
027: }
028:
029: public void setChild(interop.wsifserviceWrapped.ChildDocument child) {
030: this .child = child;
031: }
032:
033: public java.lang.String getAnAttribute() {
034: return anAttribute;
035: }
036:
037: public void setAnAttribute(java.lang.String anAttribute) {
038: this .anAttribute = anAttribute;
039: }
040:
041: private java.lang.Object __equalsCalc = null;
042:
043: public synchronized boolean equals(java.lang.Object obj) {
044: if (!(obj instanceof ComplexDocument_Type))
045: return false;
046: ComplexDocument_Type other = (ComplexDocument_Type) obj;
047: if (obj == null)
048: return false;
049: if (this == obj)
050: return true;
051: if (__equalsCalc != null) {
052: return (__equalsCalc == obj);
053: }
054: __equalsCalc = obj;
055: boolean _equals;
056: _equals = true
057: && ((simpleDoc == null && other.getSimpleDoc() == null) || (simpleDoc != null && simpleDoc
058: .equals(other.getSimpleDoc())))
059: && ((child == null && other.getChild() == null) || (child != null && child
060: .equals(other.getChild())))
061: && ((anAttribute == null && other.getAnAttribute() == null) || (anAttribute != null && anAttribute
062: .equals(other.getAnAttribute())));
063: __equalsCalc = null;
064: return _equals;
065: }
066:
067: private boolean __hashCodeCalc = false;
068:
069: public synchronized int hashCode() {
070: if (__hashCodeCalc) {
071: return 0;
072: }
073: __hashCodeCalc = true;
074: int _hashCode = 1;
075: if (getSimpleDoc() != null) {
076: _hashCode += getSimpleDoc().hashCode();
077: }
078: if (getChild() != null) {
079: _hashCode += getChild().hashCode();
080: }
081: if (getAnAttribute() != null) {
082: _hashCode += getAnAttribute().hashCode();
083: }
084: __hashCodeCalc = false;
085: return _hashCode;
086: }
087:
088: // Type metadata
089: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
090: ComplexDocument_Type.class);
091:
092: static {
093: org.apache.axis.description.FieldDesc field = new org.apache.axis.description.AttributeDesc();
094: field.setFieldName("anAttribute");
095: field.setXmlName(new javax.xml.namespace.QName("",
096: "AnAttribute"));
097: field.setXmlType(new javax.xml.namespace.QName(
098: "http://www.w3.org/2001/XMLSchema", "string"));
099: typeDesc.addFieldDesc(field);
100: field = new org.apache.axis.description.ElementDesc();
101: field.setFieldName("simpleDoc");
102: field.setXmlName(new javax.xml.namespace.QName(
103: "http://soapinterop.org/", "simpleDoc"));
104: field.setXmlType(new javax.xml.namespace.QName(
105: "http://soapinterop.org/", "ArrayOfSimpleDocument"));
106: field.setMinOccursIs0(true);
107: typeDesc.addFieldDesc(field);
108: field = new org.apache.axis.description.ElementDesc();
109: field.setFieldName("child");
110: field.setXmlName(new javax.xml.namespace.QName(
111: "http://soapinterop.org/", "child"));
112: field.setXmlType(new javax.xml.namespace.QName(
113: "http://soapinterop.org/", "ChildDocument"));
114: field.setMinOccursIs0(true);
115: typeDesc.addFieldDesc(field);
116: };
117:
118: /**
119: * Return type metadata object
120: */
121: public static org.apache.axis.description.TypeDesc getTypeDesc() {
122: return typeDesc;
123: }
124:
125: /**
126: * Get Custom Serializer
127: */
128: public static org.apache.axis.encoding.Serializer getSerializer(
129: java.lang.String mechType, java.lang.Class _javaType,
130: javax.xml.namespace.QName _xmlType) {
131: return new org.apache.axis.encoding.ser.BeanSerializer(
132: _javaType, _xmlType, typeDesc);
133: }
134:
135: /**
136: * Get Custom Deserializer
137: */
138: public static org.apache.axis.encoding.Deserializer getDeserializer(
139: java.lang.String mechType, java.lang.Class _javaType,
140: javax.xml.namespace.QName _xmlType) {
141: return new org.apache.axis.encoding.ser.BeanDeserializer(
142: _javaType, _xmlType, typeDesc);
143: }
144:
145: }
|