1   /**
2    * RegionSoap.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 RegionSoap  implements java.io.Serializable {
11      private boolean active;
12  
13      private long countryId;
14  
15      private java.lang.String name;
16  
17      private long primaryKey;
18  
19      private java.lang.String regionCode;
20  
21      private long regionId;
22  
23      public RegionSoap() {
24      }
25  
26      public RegionSoap(
27             boolean active,
28             long countryId,
29             java.lang.String name,
30             long primaryKey,
31             java.lang.String regionCode,
32             long regionId) {
33             this.active = active;
34             this.countryId = countryId;
35             this.name = name;
36             this.primaryKey = primaryKey;
37             this.regionCode = regionCode;
38             this.regionId = regionId;
39      }
40  
41  
42      /**
43       * Gets the active value for this RegionSoap.
44       * 
45       * @return active
46       */
47      public boolean isActive() {
48          return active;
49      }
50  
51  
52      /**
53       * Sets the active value for this RegionSoap.
54       * 
55       * @param active
56       */
57      public void setActive(boolean active) {
58          this.active = active;
59      }
60  
61  
62      /**
63       * Gets the countryId value for this RegionSoap.
64       * 
65       * @return countryId
66       */
67      public long getCountryId() {
68          return countryId;
69      }
70  
71  
72      /**
73       * Sets the countryId value for this RegionSoap.
74       * 
75       * @param countryId
76       */
77      public void setCountryId(long countryId) {
78          this.countryId = countryId;
79      }
80  
81  
82      /**
83       * Gets the name value for this RegionSoap.
84       * 
85       * @return name
86       */
87      public java.lang.String getName() {
88          return name;
89      }
90  
91  
92      /**
93       * Sets the name value for this RegionSoap.
94       * 
95       * @param name
96       */
97      public void setName(java.lang.String name) {
98          this.name = name;
99      }
100 
101 
102     /**
103      * Gets the primaryKey value for this RegionSoap.
104      * 
105      * @return primaryKey
106      */
107     public long getPrimaryKey() {
108         return primaryKey;
109     }
110 
111 
112     /**
113      * Sets the primaryKey value for this RegionSoap.
114      * 
115      * @param primaryKey
116      */
117     public void setPrimaryKey(long primaryKey) {
118         this.primaryKey = primaryKey;
119     }
120 
121 
122     /**
123      * Gets the regionCode value for this RegionSoap.
124      * 
125      * @return regionCode
126      */
127     public java.lang.String getRegionCode() {
128         return regionCode;
129     }
130 
131 
132     /**
133      * Sets the regionCode value for this RegionSoap.
134      * 
135      * @param regionCode
136      */
137     public void setRegionCode(java.lang.String regionCode) {
138         this.regionCode = regionCode;
139     }
140 
141 
142     /**
143      * Gets the regionId value for this RegionSoap.
144      * 
145      * @return regionId
146      */
147     public long getRegionId() {
148         return regionId;
149     }
150 
151 
152     /**
153      * Sets the regionId value for this RegionSoap.
154      * 
155      * @param regionId
156      */
157     public void setRegionId(long regionId) {
158         this.regionId = regionId;
159     }
160 
161     private java.lang.Object __equalsCalc = null;
162     public synchronized boolean equals(java.lang.Object obj) {
163         if (!(obj instanceof RegionSoap)) return false;
164         RegionSoap other = (RegionSoap) obj;
165         if (obj == null) return false;
166         if (this == obj) return true;
167         if (__equalsCalc != null) {
168             return (__equalsCalc == obj);
169         }
170         __equalsCalc = obj;
171         boolean _equals;
172         _equals = true && 
173             this.active == other.isActive() &&
174             this.countryId == other.getCountryId() &&
175             ((this.name==null && other.getName()==null) || 
176              (this.name!=null &&
177               this.name.equals(other.getName()))) &&
178             this.primaryKey == other.getPrimaryKey() &&
179             ((this.regionCode==null && other.getRegionCode()==null) || 
180              (this.regionCode!=null &&
181               this.regionCode.equals(other.getRegionCode()))) &&
182             this.regionId == other.getRegionId();
183         __equalsCalc = null;
184         return _equals;
185     }
186 
187     private boolean __hashCodeCalc = false;
188     public synchronized int hashCode() {
189         if (__hashCodeCalc) {
190             return 0;
191         }
192         __hashCodeCalc = true;
193         int _hashCode = 1;
194         _hashCode += (isActive() ? Boolean.TRUE : Boolean.FALSE).hashCode();
195         _hashCode += new Long(getCountryId()).hashCode();
196         if (getName() != null) {
197             _hashCode += getName().hashCode();
198         }
199         _hashCode += new Long(getPrimaryKey()).hashCode();
200         if (getRegionCode() != null) {
201             _hashCode += getRegionCode().hashCode();
202         }
203         _hashCode += new Long(getRegionId()).hashCode();
204         __hashCodeCalc = false;
205         return _hashCode;
206     }
207 
208     // Type metadata
209     private static org.apache.axis.description.TypeDesc typeDesc =
210         new org.apache.axis.description.TypeDesc(RegionSoap.class, true);
211 
212     static {
213         typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "RegionSoap"));
214         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
215         elemField.setFieldName("active");
216         elemField.setXmlName(new javax.xml.namespace.QName("", "active"));
217         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
218         elemField.setNillable(false);
219         typeDesc.addFieldDesc(elemField);
220         elemField = new org.apache.axis.description.ElementDesc();
221         elemField.setFieldName("countryId");
222         elemField.setXmlName(new javax.xml.namespace.QName("", "countryId"));
223         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
224         elemField.setNillable(false);
225         typeDesc.addFieldDesc(elemField);
226         elemField = new org.apache.axis.description.ElementDesc();
227         elemField.setFieldName("name");
228         elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
229         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
230         elemField.setNillable(true);
231         typeDesc.addFieldDesc(elemField);
232         elemField = new org.apache.axis.description.ElementDesc();
233         elemField.setFieldName("primaryKey");
234         elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
235         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
236         elemField.setNillable(false);
237         typeDesc.addFieldDesc(elemField);
238         elemField = new org.apache.axis.description.ElementDesc();
239         elemField.setFieldName("regionCode");
240         elemField.setXmlName(new javax.xml.namespace.QName("", "regionCode"));
241         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
242         elemField.setNillable(true);
243         typeDesc.addFieldDesc(elemField);
244         elemField = new org.apache.axis.description.ElementDesc();
245         elemField.setFieldName("regionId");
246         elemField.setXmlName(new javax.xml.namespace.QName("", "regionId"));
247         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
248         elemField.setNillable(false);
249         typeDesc.addFieldDesc(elemField);
250     }
251 
252     /**
253      * Return type metadata object
254      */
255     public static org.apache.axis.description.TypeDesc getTypeDesc() {
256         return typeDesc;
257     }
258 
259     /**
260      * Get Custom Serializer
261      */
262     public static org.apache.axis.encoding.Serializer getSerializer(
263            java.lang.String mechType, 
264            java.lang.Class _javaType,  
265            javax.xml.namespace.QName _xmlType) {
266         return 
267           new  org.apache.axis.encoding.ser.BeanSerializer(
268             _javaType, _xmlType, typeDesc);
269     }
270 
271     /**
272      * Get Custom Deserializer
273      */
274     public static org.apache.axis.encoding.Deserializer getDeserializer(
275            java.lang.String mechType, 
276            java.lang.Class _javaType,  
277            javax.xml.namespace.QName _xmlType) {
278         return 
279           new  org.apache.axis.encoding.ser.BeanDeserializer(
280             _javaType, _xmlType, typeDesc);
281     }
282 
283 }
284