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