Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/epok/auth/SomeType.java


1   /**
2    * SomeType.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.2RC1 Oct 20, 2004 (05:49:44 EDT) WSDL2Java emitter.
6    */
7   
8   package com.epok.auth;
9   
10  public class SomeType  implements java.io.Serializable {
11      private java.lang.String z;
12      private java.lang.String a;
13      private java.lang.String b;
14  
15      public SomeType() {
16      }
17  
18      public SomeType(
19             java.lang.String z,
20             java.lang.String a,
21             java.lang.String b) {
22             this.z = z;
23             this.a = a;
24             this.b = b;
25      }
26  
27  
28      /**
29       * Gets the z value for this SomeType.
30       * 
31       * @return z
32       */
33      public java.lang.String getZ() {
34          return z;
35      }
36  
37  
38      /**
39       * Sets the z value for this SomeType.
40       * 
41       * @param z
42       */
43      public void setZ(java.lang.String z) {
44          this.z = z;
45      }
46  
47  
48      /**
49       * Gets the a value for this SomeType.
50       * 
51       * @return a
52       */
53      public java.lang.String getA() {
54          return a;
55      }
56  
57  
58      /**
59       * Sets the a value for this SomeType.
60       * 
61       * @param a
62       */
63      public void setA(java.lang.String a) {
64          this.a = a;
65      }
66  
67  
68      /**
69       * Gets the b value for this SomeType.
70       * 
71       * @return b
72       */
73      public java.lang.String getB() {
74          return b;
75      }
76  
77  
78      /**
79       * Sets the b value for this SomeType.
80       * 
81       * @param b
82       */
83      public void setB(java.lang.String b) {
84          this.b = b;
85      }
86  
87      private java.lang.Object __equalsCalc = null;
88      public synchronized boolean equals(java.lang.Object obj) {
89          if (!(obj instanceof SomeType)) return false;
90          SomeType other = (SomeType) obj;
91          if (obj == null) return false;
92          if (this == obj) return true;
93          if (__equalsCalc != null) {
94              return (__equalsCalc == obj);
95          }
96          __equalsCalc = obj;
97          boolean _equals;
98          _equals = true && 
99              ((this.z==null && other.getZ()==null) || 
100              (this.z!=null &&
101               this.z.equals(other.getZ()))) &&
102             ((this.a==null && other.getA()==null) || 
103              (this.a!=null &&
104               this.a.equals(other.getA()))) &&
105             ((this.b==null && other.getB()==null) || 
106              (this.b!=null &&
107               this.b.equals(other.getB())));
108         __equalsCalc = null;
109         return _equals;
110     }
111 
112     private boolean __hashCodeCalc = false;
113     public synchronized int hashCode() {
114         if (__hashCodeCalc) {
115             return 0;
116         }
117         __hashCodeCalc = true;
118         int _hashCode = 1;
119         if (getZ() != null) {
120             _hashCode += getZ().hashCode();
121         }
122         if (getA() != null) {
123             _hashCode += getA().hashCode();
124         }
125         if (getB() != null) {
126             _hashCode += getB().hashCode();
127         }
128         __hashCodeCalc = false;
129         return _hashCode;
130     }
131 
132     // Type metadata
133     private static org.apache.axis.description.TypeDesc typeDesc =
134         new org.apache.axis.description.TypeDesc(SomeType.class, true);
135 
136     static {
137         typeDesc.setXmlType(new javax.xml.namespace.QName("urn:auth:epok:com", "SomeType"));
138         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
139         elemField.setFieldName("z");
140         elemField.setXmlName(new javax.xml.namespace.QName("", "z"));
141         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
142         typeDesc.addFieldDesc(elemField);
143         elemField = new org.apache.axis.description.ElementDesc();
144         elemField.setFieldName("a");
145         elemField.setXmlName(new javax.xml.namespace.QName("", "a"));
146         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
147         typeDesc.addFieldDesc(elemField);
148         elemField = new org.apache.axis.description.ElementDesc();
149         elemField.setFieldName("b");
150         elemField.setXmlName(new javax.xml.namespace.QName("", "b"));
151         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
152         typeDesc.addFieldDesc(elemField);
153     }
154 
155     /**
156      * Return type metadata object
157      */
158     public static org.apache.axis.description.TypeDesc getTypeDesc() {
159         return typeDesc;
160     }
161 
162     /**
163      * Get Custom Serializer
164      */
165     public static org.apache.axis.encoding.Serializer getSerializer(
166            java.lang.String mechType, 
167            java.lang.Class _javaType,  
168            javax.xml.namespace.QName _xmlType) {
169         return 
170           new  org.apache.axis.encoding.ser.BeanSerializer(
171             _javaType, _xmlType, typeDesc);
172     }
173 
174     /**
175      * Get Custom Deserializer
176      */
177     public static org.apache.axis.encoding.Deserializer getDeserializer(
178            java.lang.String mechType, 
179            java.lang.Class _javaType,  
180            javax.xml.namespace.QName _xmlType) {
181         return 
182           new  org.apache.axis.encoding.ser.BeanDeserializer(
183             _javaType, _xmlType, typeDesc);
184     }
185 
186 }