001: /**
002: * InitCookie.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis 1.2RC3 Feb 28, 2005 (10:15:14 EST) WSDL2Java emitter.
006: */package oasis.names.tc.wsrp.v1.types;
007:
008: public class InitCookie implements java.io.Serializable {
009: private oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext;
010:
011: public InitCookie() {
012: }
013:
014: public InitCookie(
015: oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext) {
016: this .registrationContext = registrationContext;
017: }
018:
019: /**
020: * Gets the registrationContext value for this InitCookie.
021: *
022: * @return registrationContext
023: */
024: public oasis.names.tc.wsrp.v1.types.RegistrationContext getRegistrationContext() {
025: return registrationContext;
026: }
027:
028: /**
029: * Sets the registrationContext value for this InitCookie.
030: *
031: * @param registrationContext
032: */
033: public void setRegistrationContext(
034: oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext) {
035: this .registrationContext = registrationContext;
036: }
037:
038: private java.lang.Object __equalsCalc = null;
039:
040: public synchronized boolean equals(java.lang.Object obj) {
041: if (!(obj instanceof InitCookie))
042: return false;
043: InitCookie other = (InitCookie) obj;
044: if (obj == null)
045: return false;
046: if (this == obj)
047: return true;
048: if (__equalsCalc != null) {
049: return (__equalsCalc == obj);
050: }
051: __equalsCalc = obj;
052: boolean _equals;
053: _equals = true && ((this .registrationContext == null && other
054: .getRegistrationContext() == null) || (this .registrationContext != null && this .registrationContext
055: .equals(other.getRegistrationContext())));
056: __equalsCalc = null;
057: return _equals;
058: }
059:
060: private boolean __hashCodeCalc = false;
061:
062: public synchronized int hashCode() {
063: if (__hashCodeCalc) {
064: return 0;
065: }
066: __hashCodeCalc = true;
067: int _hashCode = 1;
068: if (getRegistrationContext() != null) {
069: _hashCode += getRegistrationContext().hashCode();
070: }
071: __hashCodeCalc = false;
072: return _hashCode;
073: }
074:
075: // Type metadata
076: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
077: InitCookie.class, true);
078:
079: static {
080: typeDesc.setXmlType(new javax.xml.namespace.QName(
081: "urn:oasis:names:tc:wsrp:v1:types", ">initCookie"));
082: org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
083: elemField.setFieldName("registrationContext");
084: elemField.setXmlName(new javax.xml.namespace.QName(
085: "urn:oasis:names:tc:wsrp:v1:types",
086: "registrationContext"));
087: elemField.setXmlType(new javax.xml.namespace.QName(
088: "urn:oasis:names:tc:wsrp:v1:types",
089: "RegistrationContext"));
090: elemField.setNillable(true);
091: typeDesc.addFieldDesc(elemField);
092: }
093:
094: /**
095: * Return type metadata object
096: */
097: public static org.apache.axis.description.TypeDesc getTypeDesc() {
098: return typeDesc;
099: }
100:
101: /**
102: * Get Custom Serializer
103: */
104: public static org.apache.axis.encoding.Serializer getSerializer(
105: java.lang.String mechType, java.lang.Class _javaType,
106: javax.xml.namespace.QName _xmlType) {
107: return new org.apache.axis.encoding.ser.BeanSerializer(
108: _javaType, _xmlType, typeDesc);
109: }
110:
111: /**
112: * Get Custom Deserializer
113: */
114: public static org.apache.axis.encoding.Deserializer getDeserializer(
115: java.lang.String mechType, java.lang.Class _javaType,
116: javax.xml.namespace.QName _xmlType) {
117: return new org.apache.axis.encoding.ser.BeanDeserializer(
118: _javaType, _xmlType, typeDesc);
119: }
120:
121: }
|