001: /**
002: * SSOEvent.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.event.client.ws.impl;
007:
008: public class SSOEvent implements java.io.Serializable {
009: private java.lang.String type;
010:
011: public SSOEvent() {
012: }
013:
014: public SSOEvent(java.lang.String type) {
015: this .type = type;
016: }
017:
018: /**
019: * Gets the type value for this SSOEvent.
020: *
021: * @return type
022: */
023: public java.lang.String getType() {
024: return type;
025: }
026:
027: /**
028: * Sets the type value for this SSOEvent.
029: *
030: * @param type
031: */
032: public void setType(java.lang.String type) {
033: this .type = type;
034: }
035:
036: private java.lang.Object __equalsCalc = null;
037:
038: public synchronized boolean equals(java.lang.Object obj) {
039: if (!(obj instanceof SSOEvent))
040: return false;
041: SSOEvent other = (SSOEvent) 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 .type == null && other.getType() == null) || (this .type != null && this .type
052: .equals(other.getType())));
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 (getType() != null) {
066: _hashCode += getType().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: SSOEvent.class, true);
075:
076: static {
077: typeDesc.setXmlType(new javax.xml.namespace.QName(
078: "http://josso.org/gateway/event/client/ws/impl",
079: "SSOEvent"));
080: org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
081: elemField.setFieldName("type");
082: elemField.setXmlName(new javax.xml.namespace.QName("", "type"));
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: }
|