1   /**
2    * CountrySoap.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6    */
7   
8   package com.liferay.client.soap.portal.model;
9   
10  public class CountrySoap  implements java.io.Serializable {
11      private java.lang.String a2;
12  
13      private java.lang.String a3;
14  
15      private boolean active;
16  
17      private long countryId;
18  
19      private java.lang.String idd;
20  
21      private java.lang.String name;
22  
23      private java.lang.String number;
24  
25      private long primaryKey;
26  
27      public CountrySoap() {
28      }
29  
30      public CountrySoap(
31             java.lang.String a2,
32             java.lang.String a3,
33             boolean active,
34             long countryId,
35             java.lang.String idd,
36             java.lang.String name,
37             java.lang.String number,
38             long primaryKey) {
39             this.a2 = a2;
40             this.a3 = a3;
41             this.active = active;
42             this.countryId = countryId;
43             this.idd = idd;
44             this.name = name;
45             this.number = number;
46             this.primaryKey = primaryKey;
47      }
48  
49  
50      /**
51       * Gets the a2 value for this CountrySoap.
52       * 
53       * @return a2
54       */
55      public java.lang.String getA2() {
56          return a2;
57      }
58  
59  
60      /**
61       * Sets the a2 value for this CountrySoap.
62       * 
63       * @param a2
64       */
65      public void setA2(java.lang.String a2) {
66          this.a2 = a2;
67      }
68  
69  
70      /**
71       * Gets the a3 value for this CountrySoap.
72       * 
73       * @return a3
74       */
75      public java.lang.String getA3() {
76          return a3;
77      }
78  
79  
80      /**
81       * Sets the a3 value for this CountrySoap.
82       * 
83       * @param a3
84       */
85      public void setA3(java.lang.String a3) {
86          this.a3 = a3;
87      }
88  
89  
90      /**
91       * Gets the active value for this CountrySoap.
92       * 
93       * @return active
94       */
95      public boolean isActive() {
96          return active;
97      }
98  
99  
100     /**
101      * Sets the active value for this CountrySoap.
102      * 
103      * @param active
104      */
105     public void setActive(boolean active) {
106         this.active = active;
107     }
108 
109 
110     /**
111      * Gets the countryId value for this CountrySoap.
112      * 
113      * @return countryId
114      */
115     public long getCountryId() {
116         return countryId;
117     }
118 
119 
120     /**
121      * Sets the countryId value for this CountrySoap.
122      * 
123      * @param countryId
124      */
125     public void setCountryId(long countryId) {
126         this.countryId = countryId;
127     }
128 
129 
130     /**
131      * Gets the idd value for this CountrySoap.
132      * 
133      * @return idd
134      */
135     public java.lang.String getIdd() {
136         return idd;
137     }
138 
139 
140     /**
141      * Sets the idd value for this CountrySoap.
142      * 
143      * @param idd
144      */
145     public void setIdd(java.lang.String idd) {
146         this.idd = idd;
147     }
148 
149 
150     /**
151      * Gets the name value for this CountrySoap.
152      * 
153      * @return name
154      */
155     public java.lang.String getName() {
156         return name;
157     }
158 
159 
160     /**
161      * Sets the name value for this CountrySoap.
162      * 
163      * @param name
164      */
165     public void setName(java.lang.String name) {
166         this.name = name;
167     }
168 
169 
170     /**
171      * Gets the number value for this CountrySoap.
172      * 
173      * @return number
174      */
175     public java.lang.String getNumber() {
176         return number;
177     }
178 
179 
180     /**
181      * Sets the number value for this CountrySoap.
182      * 
183      * @param number
184      */
185     public void setNumber(java.lang.String number) {
186         this.number = number;
187     }
188 
189 
190     /**
191      * Gets the primaryKey value for this CountrySoap.
192      * 
193      * @return primaryKey
194      */
195     public long getPrimaryKey() {
196         return primaryKey;
197     }
198 
199 
200     /**
201      * Sets the primaryKey value for this CountrySoap.
202      * 
203      * @param primaryKey
204      */
205     public void setPrimaryKey(long primaryKey) {
206         this.primaryKey = primaryKey;
207     }
208 
209     private java.lang.Object __equalsCalc = null;
210     public synchronized boolean equals(java.lang.Object obj) {
211         if (!(obj instanceof CountrySoap)) return false;
212         CountrySoap other = (CountrySoap) obj;
213         if (obj == null) return false;
214         if (this == obj) return true;
215         if (__equalsCalc != null) {
216             return (__equalsCalc == obj);
217         }
218         __equalsCalc = obj;
219         boolean _equals;
220         _equals = true && 
221             ((this.a2==null && other.getA2()==null) || 
222              (this.a2!=null &&
223               this.a2.equals(other.getA2()))) &&
224             ((this.a3==null && other.getA3()==null) || 
225              (this.a3!=null &&
226               this.a3.equals(other.getA3()))) &&
227             this.active == other.isActive() &&
228             this.countryId == other.getCountryId() &&
229             ((this.idd==null && other.getIdd()==null) || 
230              (this.idd!=null &&
231               this.idd.equals(other.getIdd()))) &&
232             ((this.name==null && other.getName()==null) || 
233              (this.name!=null &&
234               this.name.equals(other.getName()))) &&
235             ((this.number==null && other.getNumber()==null) || 
236              (this.number!=null &&
237               this.number.equals(other.getNumber()))) &&
238             this.primaryKey == other.getPrimaryKey();
239         __equalsCalc = null;
240         return _equals;
241     }
242 
243     private boolean __hashCodeCalc = false;
244     public synchronized int hashCode() {
245         if (__hashCodeCalc) {
246             return 0;
247         }
248         __hashCodeCalc = true;
249         int _hashCode = 1;
250         if (getA2() != null) {
251             _hashCode += getA2().hashCode();
252         }
253         if (getA3() != null) {
254             _hashCode += getA3().hashCode();
255         }
256         _hashCode += (isActive() ? Boolean.TRUE : Boolean.FALSE).hashCode();
257         _hashCode += new Long(getCountryId()).hashCode();
258         if (getIdd() != null) {
259             _hashCode += getIdd().hashCode();
260         }
261         if (getName() != null) {
262             _hashCode += getName().hashCode();
263         }
264         if (getNumber() != null) {
265             _hashCode += getNumber().hashCode();
266         }
267         _hashCode += new Long(getPrimaryKey()).hashCode();
268         __hashCodeCalc = false;
269         return _hashCode;
270     }
271 
272     // Type metadata
273     private static org.apache.axis.description.TypeDesc typeDesc =
274         new org.apache.axis.description.TypeDesc(CountrySoap.class, true);
275 
276     static {
277         typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "CountrySoap"));
278         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
279         elemField.setFieldName("a2");
280         elemField.setXmlName(new javax.xml.namespace.QName("", "a2"));
281         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
282         elemField.setNillable(true);
283         typeDesc.addFieldDesc(elemField);
284         elemField = new org.apache.axis.description.ElementDesc();
285         elemField.setFieldName("a3");
286         elemField.setXmlName(new javax.xml.namespace.QName("", "a3"));
287         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
288         elemField.setNillable(true);
289         typeDesc.addFieldDesc(elemField);
290         elemField = new org.apache.axis.description.ElementDesc();
291         elemField.setFieldName("active");
292         elemField.setXmlName(new javax.xml.namespace.QName("", "active"));
293         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
294         elemField.setNillable(false);
295         typeDesc.addFieldDesc(elemField);
296         elemField = new org.apache.axis.description.ElementDesc();
297         elemField.setFieldName("countryId");
298         elemField.setXmlName(new javax.xml.namespace.QName("", "countryId"));
299         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
300         elemField.setNillable(false);
301         typeDesc.addFieldDesc(elemField);
302         elemField = new org.apache.axis.description.ElementDesc();
303         elemField.setFieldName("idd");
304         elemField.setXmlName(new javax.xml.namespace.QName("", "idd"));
305         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
306         elemField.setNillable(true);
307         typeDesc.addFieldDesc(elemField);
308         elemField = new org.apache.axis.description.ElementDesc();
309         elemField.setFieldName("name");
310         elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
311         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
312         elemField.setNillable(true);
313         typeDesc.addFieldDesc(elemField);
314         elemField = new org.apache.axis.description.ElementDesc();
315         elemField.setFieldName("number");
316         elemField.setXmlName(new javax.xml.namespace.QName("", "number"));
317         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
318         elemField.setNillable(true);
319         typeDesc.addFieldDesc(elemField);
320         elemField = new org.apache.axis.description.ElementDesc();
321         elemField.setFieldName("primaryKey");
322         elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
323         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
324         elemField.setNillable(false);
325         typeDesc.addFieldDesc(elemField);
326     }
327 
328     /**
329      * Return type metadata object
330      */
331     public static org.apache.axis.description.TypeDesc getTypeDesc() {
332         return typeDesc;
333     }
334 
335     /**
336      * Get Custom Serializer
337      */
338     public static org.apache.axis.encoding.Serializer getSerializer(
339            java.lang.String mechType, 
340            java.lang.Class _javaType,  
341            javax.xml.namespace.QName _xmlType) {
342         return 
343           new  org.apache.axis.encoding.ser.BeanSerializer(
344             _javaType, _xmlType, typeDesc);
345     }
346 
347     /**
348      * Get Custom Deserializer
349      */
350     public static org.apache.axis.encoding.Deserializer getDeserializer(
351            java.lang.String mechType, 
352            java.lang.Class _javaType,  
353            javax.xml.namespace.QName _xmlType) {
354         return 
355           new  org.apache.axis.encoding.ser.BeanDeserializer(
356             _javaType, _xmlType, typeDesc);
357     }
358 
359 }
360