001: /**
002: * SSOUser.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 SSOUser implements java.io.Serializable {
009: private java.lang.String name;
010: private org.josso.gateway.identity.service.ws.impl.SSONameValuePair[] properties;
011: private java.lang.String sessionId;
012:
013: public SSOUser() {
014: }
015:
016: public SSOUser(
017: java.lang.String name,
018: org.josso.gateway.identity.service.ws.impl.SSONameValuePair[] properties,
019: java.lang.String sessionId) {
020: this .name = name;
021: this .properties = properties;
022: this .sessionId = sessionId;
023: }
024:
025: /**
026: * Gets the name value for this SSOUser.
027: *
028: * @return name
029: */
030: public java.lang.String getName() {
031: return name;
032: }
033:
034: /**
035: * Sets the name value for this SSOUser.
036: *
037: * @param name
038: */
039: public void setName(java.lang.String name) {
040: this .name = name;
041: }
042:
043: /**
044: * Gets the properties value for this SSOUser.
045: *
046: * @return properties
047: */
048: public org.josso.gateway.identity.service.ws.impl.SSONameValuePair[] getProperties() {
049: return properties;
050: }
051:
052: /**
053: * Sets the properties value for this SSOUser.
054: *
055: * @param properties
056: */
057: public void setProperties(
058: org.josso.gateway.identity.service.ws.impl.SSONameValuePair[] properties) {
059: this .properties = properties;
060: }
061:
062: /**
063: * Gets the sessionId value for this SSOUser.
064: *
065: * @return sessionId
066: */
067: public java.lang.String getSessionId() {
068: return sessionId;
069: }
070:
071: /**
072: * Sets the sessionId value for this SSOUser.
073: *
074: * @param sessionId
075: */
076: public void setSessionId(java.lang.String sessionId) {
077: this .sessionId = sessionId;
078: }
079:
080: private java.lang.Object __equalsCalc = null;
081:
082: public synchronized boolean equals(java.lang.Object obj) {
083: if (!(obj instanceof SSOUser))
084: return false;
085: SSOUser other = (SSOUser) obj;
086: if (obj == null)
087: return false;
088: if (this == obj)
089: return true;
090: if (__equalsCalc != null) {
091: return (__equalsCalc == obj);
092: }
093: __equalsCalc = obj;
094: boolean _equals;
095: _equals = true
096: && ((this .name == null && other.getName() == null) || (this .name != null && this .name
097: .equals(other.getName())))
098: && ((this .properties == null && other.getProperties() == null) || (this .properties != null && java.util.Arrays
099: .equals(this .properties, other.getProperties())))
100: && ((this .sessionId == null && other.getSessionId() == null) || (this .sessionId != null && this .sessionId
101: .equals(other.getSessionId())));
102: __equalsCalc = null;
103: return _equals;
104: }
105:
106: private boolean __hashCodeCalc = false;
107:
108: public synchronized int hashCode() {
109: if (__hashCodeCalc) {
110: return 0;
111: }
112: __hashCodeCalc = true;
113: int _hashCode = 1;
114: if (getName() != null) {
115: _hashCode += getName().hashCode();
116: }
117: if (getProperties() != null) {
118: for (int i = 0; i < java.lang.reflect.Array
119: .getLength(getProperties()); i++) {
120: java.lang.Object obj = java.lang.reflect.Array.get(
121: getProperties(), i);
122: if (obj != null && !obj.getClass().isArray()) {
123: _hashCode += obj.hashCode();
124: }
125: }
126: }
127: if (getSessionId() != null) {
128: _hashCode += getSessionId().hashCode();
129: }
130: __hashCodeCalc = false;
131: return _hashCode;
132: }
133:
134: // Type metadata
135: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
136: SSOUser.class, true);
137:
138: static {
139: typeDesc.setXmlType(new javax.xml.namespace.QName(
140: "http://josso.org/gateway/identity/service/ws/impl",
141: "SSOUser"));
142: org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
143: elemField.setFieldName("name");
144: elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
145: elemField.setXmlType(new javax.xml.namespace.QName(
146: "http://www.w3.org/2001/XMLSchema", "string"));
147: elemField.setNillable(true);
148: typeDesc.addFieldDesc(elemField);
149: elemField = new org.apache.axis.description.ElementDesc();
150: elemField.setFieldName("properties");
151: elemField.setXmlName(new javax.xml.namespace.QName("",
152: "properties"));
153: elemField.setXmlType(new javax.xml.namespace.QName(
154: "http://josso.org/gateway/identity/service/ws/impl",
155: "SSONameValuePair"));
156: elemField.setNillable(true);
157: typeDesc.addFieldDesc(elemField);
158: elemField = new org.apache.axis.description.ElementDesc();
159: elemField.setFieldName("sessionId");
160: elemField.setXmlName(new javax.xml.namespace.QName("",
161: "sessionId"));
162: elemField.setXmlType(new javax.xml.namespace.QName(
163: "http://www.w3.org/2001/XMLSchema", "string"));
164: elemField.setNillable(true);
165: typeDesc.addFieldDesc(elemField);
166: }
167:
168: /**
169: * Return type metadata object
170: */
171: public static org.apache.axis.description.TypeDesc getTypeDesc() {
172: return typeDesc;
173: }
174:
175: /**
176: * Get Custom Serializer
177: */
178: public static org.apache.axis.encoding.Serializer getSerializer(
179: java.lang.String mechType, java.lang.Class _javaType,
180: javax.xml.namespace.QName _xmlType) {
181: return new org.apache.axis.encoding.ser.BeanSerializer(
182: _javaType, _xmlType, typeDesc);
183: }
184:
185: /**
186: * Get Custom Deserializer
187: */
188: public static org.apache.axis.encoding.Deserializer getDeserializer(
189: java.lang.String mechType, java.lang.Class _javaType,
190: javax.xml.namespace.QName _xmlType) {
191: return new org.apache.axis.encoding.ser.BeanDeserializer(
192: _javaType, _xmlType, typeDesc);
193: }
194:
195: }
|