001: /**
002: * Item.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis WSDL2Java emitter.
006: */package org.apache.xml;
007:
008: public class Item implements java.io.Serializable {
009: private java.lang.Object key;
010: private java.lang.Object value;
011:
012: public Item() {
013: }
014:
015: public java.lang.Object getKey() {
016: return key;
017: }
018:
019: public void setKey(java.lang.Object key) {
020: this .key = key;
021: }
022:
023: public java.lang.Object getValue() {
024: return value;
025: }
026:
027: public void setValue(java.lang.Object value) {
028: this .value = value;
029: }
030:
031: private java.lang.Object __equalsCalc = null;
032:
033: public synchronized boolean equals(java.lang.Object obj) {
034: if (!(obj instanceof Item))
035: return false;
036: Item other = (Item) obj;
037: if (obj == null)
038: return false;
039: if (this == obj)
040: return true;
041: if (__equalsCalc != null) {
042: return (__equalsCalc == obj);
043: }
044: __equalsCalc = obj;
045: boolean _equals;
046: _equals = true
047: && ((key == null && other.getKey() == null) || (key != null && key
048: .equals(other.getKey())))
049: && ((value == null && other.getValue() == null) || (value != null && value
050: .equals(other.getValue())));
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 (getKey() != null) {
064: _hashCode += getKey().hashCode();
065: }
066: if (getValue() != null) {
067: _hashCode += getValue().hashCode();
068: }
069: __hashCodeCalc = false;
070: return _hashCode;
071: }
072:
073: // Type metadata
074: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
075: Item.class);
076:
077: static {
078: org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
079: field.setFieldName("key");
080: field.setXmlName(new javax.xml.namespace.QName("", "key"));
081: field.setXmlType(new javax.xml.namespace.QName(
082: "http://www.w3.org/2001/XMLSchema", "anyType"));
083: typeDesc.addFieldDesc(field);
084: field = new org.apache.axis.description.ElementDesc();
085: field.setFieldName("value");
086: field.setXmlName(new javax.xml.namespace.QName("", "value"));
087: field.setXmlType(new javax.xml.namespace.QName(
088: "http://www.w3.org/2001/XMLSchema", "anyType"));
089: typeDesc.addFieldDesc(field);
090: };
091:
092: /**
093: * Return type metadata object
094: */
095: public static org.apache.axis.description.TypeDesc getTypeDesc() {
096: return typeDesc;
097: }
098:
099: /**
100: * Get Custom Serializer
101: */
102: public static org.apache.axis.encoding.Serializer getSerializer(
103: java.lang.String mechType, java.lang.Class _javaType,
104: javax.xml.namespace.QName _xmlType) {
105: return new org.apache.axis.encoding.ser.BeanSerializer(
106: _javaType, _xmlType, typeDesc);
107: }
108:
109: /**
110: * Get Custom Deserializer
111: */
112: public static org.apache.axis.encoding.Deserializer getDeserializer(
113: java.lang.String mechType, java.lang.Class _javaType,
114: javax.xml.namespace.QName _xmlType) {
115: return new org.apache.axis.encoding.ser.BeanDeserializer(
116: _javaType, _xmlType, typeDesc);
117: }
118:
119: }
|