1   /**
2    * InitCookie.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.2RC3 Feb 28, 2005 (10:15:14 EST) WSDL2Java emitter.
6    */
7   
8   package oasis.names.tc.wsrp.v1.types;
9   
10  public class InitCookie  implements java.io.Serializable {
11      private oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext;
12  
13      public InitCookie() {
14      }
15  
16      public InitCookie(
17             oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext) {
18             this.registrationContext = registrationContext;
19      }
20  
21  
22      /**
23       * Gets the registrationContext value for this InitCookie.
24       * 
25       * @return registrationContext
26       */
27      public oasis.names.tc.wsrp.v1.types.RegistrationContext getRegistrationContext() {
28          return registrationContext;
29      }
30  
31  
32      /**
33       * Sets the registrationContext value for this InitCookie.
34       * 
35       * @param registrationContext
36       */
37      public void setRegistrationContext(oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext) {
38          this.registrationContext = registrationContext;
39      }
40  
41      private java.lang.Object __equalsCalc = null;
42      public synchronized boolean equals(java.lang.Object obj) {
43          if (!(obj instanceof InitCookie)) return false;
44          InitCookie other = (InitCookie) obj;
45          if (obj == null) return false;
46          if (this == obj) return true;
47          if (__equalsCalc != null) {
48              return (__equalsCalc == obj);
49          }
50          __equalsCalc = obj;
51          boolean _equals;
52          _equals = true && 
53              ((this.registrationContext==null && other.getRegistrationContext()==null) || 
54               (this.registrationContext!=null &&
55                this.registrationContext.equals(other.getRegistrationContext())));
56          __equalsCalc = null;
57          return _equals;
58      }
59  
60      private boolean __hashCodeCalc = false;
61      public synchronized int hashCode() {
62          if (__hashCodeCalc) {
63              return 0;
64          }
65          __hashCodeCalc = true;
66          int _hashCode = 1;
67          if (getRegistrationContext() != null) {
68              _hashCode += getRegistrationContext().hashCode();
69          }
70          __hashCodeCalc = false;
71          return _hashCode;
72      }
73  
74      // Type metadata
75      private static org.apache.axis.description.TypeDesc typeDesc =
76          new org.apache.axis.description.TypeDesc(InitCookie.class, true);
77  
78      static {
79          typeDesc.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", ">initCookie"));
80          org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
81          elemField.setFieldName("registrationContext");
82          elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "registrationContext"));
83          elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "RegistrationContext"));
84          elemField.setNillable(true);
85          typeDesc.addFieldDesc(elemField);
86      }
87  
88      /**
89       * Return type metadata object
90       */
91      public static org.apache.axis.description.TypeDesc getTypeDesc() {
92          return typeDesc;
93      }
94  
95      /**
96       * Get Custom Serializer
97       */
98      public static org.apache.axis.encoding.Serializer getSerializer(
99             java.lang.String mechType, 
100            java.lang.Class _javaType,  
101            javax.xml.namespace.QName _xmlType) {
102         return 
103           new  org.apache.axis.encoding.ser.BeanSerializer(
104             _javaType, _xmlType, typeDesc);
105     }
106 
107     /**
108      * Get Custom Deserializer
109      */
110     public static org.apache.axis.encoding.Deserializer getDeserializer(
111            java.lang.String mechType, 
112            java.lang.Class _javaType,  
113            javax.xml.namespace.QName _xmlType) {
114         return 
115           new  org.apache.axis.encoding.ser.BeanDeserializer(
116             _javaType, _xmlType, typeDesc);
117     }
118 
119 }
120