001: /**
002: * SSORole.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 SSORole implements java.io.Serializable {
009: private java.lang.String name;
010:
011: public SSORole() {
012: }
013:
014: public SSORole(java.lang.String name) {
015: this .name = name;
016: }
017:
018: /**
019: * Gets the name value for this SSORole.
020: *
021: * @return name
022: */
023: public java.lang.String getName() {
024: return name;
025: }
026:
027: /**
028: * Sets the name value for this SSORole.
029: *
030: * @param name
031: */
032: public void setName(java.lang.String name) {
033: this .name = name;
034: }
035:
036: private java.lang.Object __equalsCalc = null;
037:
038: public synchronized boolean equals(java.lang.Object obj) {
039: if (!(obj instanceof SSORole))
040: return false;
041: SSORole other = (SSORole) obj;
042: if (obj == null)
043: return false;
044: if (this == obj)
045: return true;
046: if (__equalsCalc != null) {
047: return (__equalsCalc == obj);
048: }
049: __equalsCalc = obj;
050: boolean _equals;
051: _equals = true && ((this .name == null && other.getName() == null) || (this .name != null && this .name
052: .equals(other.getName())));
053: __equalsCalc = null;
054: return _equals;
055: }
056:
057: private boolean __hashCodeCalc = false;
058:
059: public synchronized int hashCode() {
060: if (__hashCodeCalc) {
061: return 0;
062: }
063: __hashCodeCalc = true;
064: int _hashCode = 1;
065: if (getName() != null) {
066: _hashCode += getName().hashCode();
067: }
068: __hashCodeCalc = false;
069: return _hashCode;
070: }
071:
072: // Type metadata
073: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
074: SSORole.class, true);
075:
076: static {
077: typeDesc.setXmlType(new javax.xml.namespace.QName(
078: "http://josso.org/gateway/identity/service/ws/impl",
079: "SSORole"));
080: org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
081: elemField.setFieldName("name");
082: elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
083: elemField.setXmlType(new javax.xml.namespace.QName(
084: "http://www.w3.org/2001/XMLSchema", "string"));
085: elemField.setNillable(true);
086: typeDesc.addFieldDesc(elemField);
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: }
|