001: /**
002: * MapItem.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis 1.4 Nov 19, 2006 (02:31:34 GMT+00:00) WSDL2Java emitter.
006: */package org.objectweb.salome_tmf.soap;
007:
008: public class MapItem implements java.io.Serializable {
009: private java.lang.Object key;
010:
011: private java.lang.Object value;
012:
013: public MapItem() {
014: }
015:
016: public MapItem(java.lang.Object key, java.lang.Object value) {
017: this .key = key;
018: this .value = value;
019: }
020:
021: /**
022: * Gets the key value for this MapItem.
023: *
024: * @return key
025: */
026: public java.lang.Object getKey() {
027: return key;
028: }
029:
030: /**
031: * Sets the key value for this MapItem.
032: *
033: * @param key
034: */
035: public void setKey(java.lang.Object key) {
036: this .key = key;
037: }
038:
039: /**
040: * Gets the value value for this MapItem.
041: *
042: * @return value
043: */
044: public java.lang.Object getValue() {
045: return value;
046: }
047:
048: /**
049: * Sets the value value for this MapItem.
050: *
051: * @param value
052: */
053: public void setValue(java.lang.Object value) {
054: this .value = value;
055: }
056:
057: private java.lang.Object __equalsCalc = null;
058:
059: public synchronized boolean equals(java.lang.Object obj) {
060: if (!(obj instanceof MapItem))
061: return false;
062: MapItem other = (MapItem) obj;
063: if (obj == null)
064: return false;
065: if (this == obj)
066: return true;
067: if (__equalsCalc != null) {
068: return (__equalsCalc == obj);
069: }
070: __equalsCalc = obj;
071: boolean _equals;
072: _equals = true
073: && ((this .key == null && other.getKey() == null) || (this .key != null && this .key
074: .equals(other.getKey())))
075: && ((this .value == null && other.getValue() == null) || (this .value != null && this .value
076: .equals(other.getValue())));
077: __equalsCalc = null;
078: return _equals;
079: }
080:
081: private boolean __hashCodeCalc = false;
082:
083: public synchronized int hashCode() {
084: if (__hashCodeCalc) {
085: return 0;
086: }
087: __hashCodeCalc = true;
088: int _hashCode = 1;
089: if (getKey() != null) {
090: _hashCode += getKey().hashCode();
091: }
092: if (getValue() != null) {
093: _hashCode += getValue().hashCode();
094: }
095: __hashCodeCalc = false;
096: return _hashCode;
097: }
098:
099: // Type metadata
100: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
101: MapItem.class, true);
102:
103: static {
104: typeDesc.setXmlType(new javax.xml.namespace.QName(
105: "http://xml.apache.org/xml-soap", "mapItem"));
106: org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
107: elemField.setFieldName("key");
108: elemField.setXmlName(new javax.xml.namespace.QName("", "key"));
109: elemField.setXmlType(new javax.xml.namespace.QName(
110: "http://www.w3.org/2001/XMLSchema", "anyType"));
111: elemField.setNillable(true);
112: typeDesc.addFieldDesc(elemField);
113: elemField = new org.apache.axis.description.ElementDesc();
114: elemField.setFieldName("value");
115: elemField
116: .setXmlName(new javax.xml.namespace.QName("", "value"));
117: elemField.setXmlType(new javax.xml.namespace.QName(
118: "http://www.w3.org/2001/XMLSchema", "anyType"));
119: elemField.setNillable(true);
120: typeDesc.addFieldDesc(elemField);
121: }
122:
123: /**
124: * Return type metadata object
125: */
126: public static org.apache.axis.description.TypeDesc getTypeDesc() {
127: return typeDesc;
128: }
129:
130: /**
131: * Get Custom Serializer
132: */
133: public static org.apache.axis.encoding.Serializer getSerializer(
134: java.lang.String mechType, java.lang.Class _javaType,
135: javax.xml.namespace.QName _xmlType) {
136: return new org.apache.axis.encoding.ser.BeanSerializer(
137: _javaType, _xmlType, typeDesc);
138: }
139:
140: /**
141: * Get Custom Deserializer
142: */
143: public static org.apache.axis.encoding.Deserializer getDeserializer(
144: java.lang.String mechType, java.lang.Class _javaType,
145: javax.xml.namespace.QName _xmlType) {
146: return new org.apache.axis.encoding.ser.BeanDeserializer(
147: _javaType, _xmlType, typeDesc);
148: }
149:
150: }
|