1   /**
2    * GetServiceDescription.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 GetServiceDescription  implements java.io.Serializable {
11      private oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext;
12      private java.lang.String[] desiredLocales;
13  
14      public GetServiceDescription() {
15      }
16  
17      public GetServiceDescription(
18             java.lang.String[] desiredLocales,
19             oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext) {
20             this.registrationContext = registrationContext;
21             this.desiredLocales = desiredLocales;
22      }
23  
24  
25      /**
26       * Gets the registrationContext value for this GetServiceDescription.
27       * 
28       * @return registrationContext
29       */
30      public oasis.names.tc.wsrp.v1.types.RegistrationContext getRegistrationContext() {
31          return registrationContext;
32      }
33  
34  
35      /**
36       * Sets the registrationContext value for this GetServiceDescription.
37       * 
38       * @param registrationContext
39       */
40      public void setRegistrationContext(oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext) {
41          this.registrationContext = registrationContext;
42      }
43  
44  
45      /**
46       * Gets the desiredLocales value for this GetServiceDescription.
47       * 
48       * @return desiredLocales
49       */
50      public java.lang.String[] getDesiredLocales() {
51          return desiredLocales;
52      }
53  
54  
55      /**
56       * Sets the desiredLocales value for this GetServiceDescription.
57       * 
58       * @param desiredLocales
59       */
60      public void setDesiredLocales(java.lang.String[] desiredLocales) {
61          this.desiredLocales = desiredLocales;
62      }
63  
64      public java.lang.String getDesiredLocales(int i) {
65          return this.desiredLocales[i];
66      }
67  
68      public void setDesiredLocales(int i, java.lang.String _value) {
69          this.desiredLocales[i] = _value;
70      }
71  
72      private java.lang.Object __equalsCalc = null;
73      public synchronized boolean equals(java.lang.Object obj) {
74          if (!(obj instanceof GetServiceDescription)) return false;
75          GetServiceDescription other = (GetServiceDescription) obj;
76          if (obj == null) return false;
77          if (this == obj) return true;
78          if (__equalsCalc != null) {
79              return (__equalsCalc == obj);
80          }
81          __equalsCalc = obj;
82          boolean _equals;
83          _equals = true && 
84              ((this.registrationContext==null && other.getRegistrationContext()==null) || 
85               (this.registrationContext!=null &&
86                this.registrationContext.equals(other.getRegistrationContext()))) &&
87              ((this.desiredLocales==null && other.getDesiredLocales()==null) || 
88               (this.desiredLocales!=null &&
89                java.util.Arrays.equals(this.desiredLocales, other.getDesiredLocales())));
90          __equalsCalc = null;
91          return _equals;
92      }
93  
94      private boolean __hashCodeCalc = false;
95      public synchronized int hashCode() {
96          if (__hashCodeCalc) {
97              return 0;
98          }
99          __hashCodeCalc = true;
100         int _hashCode = 1;
101         if (getRegistrationContext() != null) {
102             _hashCode += getRegistrationContext().hashCode();
103         }
104         if (getDesiredLocales() != null) {
105             for (int i=0;
106                  i<java.lang.reflect.Array.getLength(getDesiredLocales());
107                  i++) {
108                 java.lang.Object obj = java.lang.reflect.Array.get(getDesiredLocales(), i);
109                 if (obj != null &&
110                     !obj.getClass().isArray()) {
111                     _hashCode += obj.hashCode();
112                 }
113             }
114         }
115         __hashCodeCalc = false;
116         return _hashCode;
117     }
118 
119     // Type metadata
120     private static org.apache.axis.description.TypeDesc typeDesc =
121         new org.apache.axis.description.TypeDesc(GetServiceDescription.class, true);
122 
123     static {
124         typeDesc.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", ">getServiceDescription"));
125         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
126         elemField.setFieldName("registrationContext");
127         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "registrationContext"));
128         elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "RegistrationContext"));
129         elemField.setNillable(true);
130         typeDesc.addFieldDesc(elemField);
131         elemField = new org.apache.axis.description.ElementDesc();
132         elemField.setFieldName("desiredLocales");
133         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "desiredLocales"));
134         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
135         elemField.setMinOccurs(0);
136         typeDesc.addFieldDesc(elemField);
137     }
138 
139     /**
140      * Return type metadata object
141      */
142     public static org.apache.axis.description.TypeDesc getTypeDesc() {
143         return typeDesc;
144     }
145 
146     /**
147      * Get Custom Serializer
148      */
149     public static org.apache.axis.encoding.Serializer getSerializer(
150            java.lang.String mechType, 
151            java.lang.Class _javaType,  
152            javax.xml.namespace.QName _xmlType) {
153         return 
154           new  org.apache.axis.encoding.ser.BeanSerializer(
155             _javaType, _xmlType, typeDesc);
156     }
157 
158     /**
159      * Get Custom Deserializer
160      */
161     public static org.apache.axis.encoding.Deserializer getDeserializer(
162            java.lang.String mechType, 
163            java.lang.Class _javaType,  
164            javax.xml.namespace.QName _xmlType) {
165         return 
166           new  org.apache.axis.encoding.ser.BeanDeserializer(
167             _javaType, _xmlType, typeDesc);
168     }
169 
170 }
171