001: /**
002: * SSONameValuePair.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis 1.2.1 Jul 21, 2005 (10:26:06 GMT-03:00) WSDL2Java emitter.
006: */package org.josso.gateway.identity.service.ws.impl;
007:
008: public class SSONameValuePair implements java.io.Serializable {
009: private java.lang.String name;
010: private java.lang.String value;
011:
012: public SSONameValuePair() {
013: }
014:
015: public SSONameValuePair(java.lang.String name,
016: java.lang.String value) {
017: this .name = name;
018: this .value = value;
019: }
020:
021: /**
022: * Gets the name value for this SSONameValuePair.
023: *
024: * @return name
025: */
026: public java.lang.String getName() {
027: return name;
028: }
029:
030: /**
031: * Sets the name value for this SSONameValuePair.
032: *
033: * @param name
034: */
035: public void setName(java.lang.String name) {
036: this .name = name;
037: }
038:
039: /**
040: * Gets the value value for this SSONameValuePair.
041: *
042: * @return value
043: */
044: public java.lang.String getValue() {
045: return value;
046: }
047:
048: /**
049: * Sets the value value for this SSONameValuePair.
050: *
051: * @param value
052: */
053: public void setValue(java.lang.String 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 SSONameValuePair))
061: return false;
062: SSONameValuePair other = (SSONameValuePair) 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 .name == null && other.getName() == null) || (this .name != null && this .name
074: .equals(other.getName())))
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 (getName() != null) {
090: _hashCode += getName().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: SSONameValuePair.class, true);
102:
103: static {
104: typeDesc.setXmlType(new javax.xml.namespace.QName(
105: "http://josso.org/gateway/identity/service/ws/impl",
106: "SSONameValuePair"));
107: org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
108: elemField.setFieldName("name");
109: elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
110: elemField.setXmlType(new javax.xml.namespace.QName(
111: "http://www.w3.org/2001/XMLSchema", "string"));
112: elemField.setNillable(true);
113: typeDesc.addFieldDesc(elemField);
114: elemField = new org.apache.axis.description.ElementDesc();
115: elemField.setFieldName("value");
116: elemField
117: .setXmlName(new javax.xml.namespace.QName("", "value"));
118: elemField.setXmlType(new javax.xml.namespace.QName(
119: "http://www.w3.org/2001/XMLSchema", "string"));
120: elemField.setNillable(true);
121: typeDesc.addFieldDesc(elemField);
122: }
123:
124: /**
125: * Return type metadata object
126: */
127: public static org.apache.axis.description.TypeDesc getTypeDesc() {
128: return typeDesc;
129: }
130:
131: /**
132: * Get Custom Serializer
133: */
134: public static org.apache.axis.encoding.Serializer getSerializer(
135: java.lang.String mechType, java.lang.Class _javaType,
136: javax.xml.namespace.QName _xmlType) {
137: return new org.apache.axis.encoding.ser.BeanSerializer(
138: _javaType, _xmlType, typeDesc);
139: }
140:
141: /**
142: * Get Custom Deserializer
143: */
144: public static org.apache.axis.encoding.Deserializer getDeserializer(
145: java.lang.String mechType, java.lang.Class _javaType,
146: javax.xml.namespace.QName _xmlType) {
147: return new org.apache.axis.encoding.ser.BeanDeserializer(
148: _javaType, _xmlType, typeDesc);
149: }
150:
151: }
|