1   /**
2    * AddressSoap.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 AddressSoap  implements java.io.Serializable {
11      private long addressId;
12  
13      private java.lang.String city;
14  
15      private long classNameId;
16  
17      private long classPK;
18  
19      private long companyId;
20  
21      private long countryId;
22  
23      private java.util.Calendar createDate;
24  
25      private boolean mailing;
26  
27      private java.util.Calendar modifiedDate;
28  
29      private boolean primary;
30  
31      private long primaryKey;
32  
33      private long regionId;
34  
35      private java.lang.String street1;
36  
37      private java.lang.String street2;
38  
39      private java.lang.String street3;
40  
41      private int typeId;
42  
43      private long userId;
44  
45      private java.lang.String userName;
46  
47      private java.lang.String zip;
48  
49      public AddressSoap() {
50      }
51  
52      public AddressSoap(
53             long addressId,
54             java.lang.String city,
55             long classNameId,
56             long classPK,
57             long companyId,
58             long countryId,
59             java.util.Calendar createDate,
60             boolean mailing,
61             java.util.Calendar modifiedDate,
62             boolean primary,
63             long primaryKey,
64             long regionId,
65             java.lang.String street1,
66             java.lang.String street2,
67             java.lang.String street3,
68             int typeId,
69             long userId,
70             java.lang.String userName,
71             java.lang.String zip) {
72             this.addressId = addressId;
73             this.city = city;
74             this.classNameId = classNameId;
75             this.classPK = classPK;
76             this.companyId = companyId;
77             this.countryId = countryId;
78             this.createDate = createDate;
79             this.mailing = mailing;
80             this.modifiedDate = modifiedDate;
81             this.primary = primary;
82             this.primaryKey = primaryKey;
83             this.regionId = regionId;
84             this.street1 = street1;
85             this.street2 = street2;
86             this.street3 = street3;
87             this.typeId = typeId;
88             this.userId = userId;
89             this.userName = userName;
90             this.zip = zip;
91      }
92  
93  
94      /**
95       * Gets the addressId value for this AddressSoap.
96       * 
97       * @return addressId
98       */
99      public long getAddressId() {
100         return addressId;
101     }
102 
103 
104     /**
105      * Sets the addressId value for this AddressSoap.
106      * 
107      * @param addressId
108      */
109     public void setAddressId(long addressId) {
110         this.addressId = addressId;
111     }
112 
113 
114     /**
115      * Gets the city value for this AddressSoap.
116      * 
117      * @return city
118      */
119     public java.lang.String getCity() {
120         return city;
121     }
122 
123 
124     /**
125      * Sets the city value for this AddressSoap.
126      * 
127      * @param city
128      */
129     public void setCity(java.lang.String city) {
130         this.city = city;
131     }
132 
133 
134     /**
135      * Gets the classNameId value for this AddressSoap.
136      * 
137      * @return classNameId
138      */
139     public long getClassNameId() {
140         return classNameId;
141     }
142 
143 
144     /**
145      * Sets the classNameId value for this AddressSoap.
146      * 
147      * @param classNameId
148      */
149     public void setClassNameId(long classNameId) {
150         this.classNameId = classNameId;
151     }
152 
153 
154     /**
155      * Gets the classPK value for this AddressSoap.
156      * 
157      * @return classPK
158      */
159     public long getClassPK() {
160         return classPK;
161     }
162 
163 
164     /**
165      * Sets the classPK value for this AddressSoap.
166      * 
167      * @param classPK
168      */
169     public void setClassPK(long classPK) {
170         this.classPK = classPK;
171     }
172 
173 
174     /**
175      * Gets the companyId value for this AddressSoap.
176      * 
177      * @return companyId
178      */
179     public long getCompanyId() {
180         return companyId;
181     }
182 
183 
184     /**
185      * Sets the companyId value for this AddressSoap.
186      * 
187      * @param companyId
188      */
189     public void setCompanyId(long companyId) {
190         this.companyId = companyId;
191     }
192 
193 
194     /**
195      * Gets the countryId value for this AddressSoap.
196      * 
197      * @return countryId
198      */
199     public long getCountryId() {
200         return countryId;
201     }
202 
203 
204     /**
205      * Sets the countryId value for this AddressSoap.
206      * 
207      * @param countryId
208      */
209     public void setCountryId(long countryId) {
210         this.countryId = countryId;
211     }
212 
213 
214     /**
215      * Gets the createDate value for this AddressSoap.
216      * 
217      * @return createDate
218      */
219     public java.util.Calendar getCreateDate() {
220         return createDate;
221     }
222 
223 
224     /**
225      * Sets the createDate value for this AddressSoap.
226      * 
227      * @param createDate
228      */
229     public void setCreateDate(java.util.Calendar createDate) {
230         this.createDate = createDate;
231     }
232 
233 
234     /**
235      * Gets the mailing value for this AddressSoap.
236      * 
237      * @return mailing
238      */
239     public boolean isMailing() {
240         return mailing;
241     }
242 
243 
244     /**
245      * Sets the mailing value for this AddressSoap.
246      * 
247      * @param mailing
248      */
249     public void setMailing(boolean mailing) {
250         this.mailing = mailing;
251     }
252 
253 
254     /**
255      * Gets the modifiedDate value for this AddressSoap.
256      * 
257      * @return modifiedDate
258      */
259     public java.util.Calendar getModifiedDate() {
260         return modifiedDate;
261     }
262 
263 
264     /**
265      * Sets the modifiedDate value for this AddressSoap.
266      * 
267      * @param modifiedDate
268      */
269     public void setModifiedDate(java.util.Calendar modifiedDate) {
270         this.modifiedDate = modifiedDate;
271     }
272 
273 
274     /**
275      * Gets the primary value for this AddressSoap.
276      * 
277      * @return primary
278      */
279     public boolean isPrimary() {
280         return primary;
281     }
282 
283 
284     /**
285      * Sets the primary value for this AddressSoap.
286      * 
287      * @param primary
288      */
289     public void setPrimary(boolean primary) {
290         this.primary = primary;
291     }
292 
293 
294     /**
295      * Gets the primaryKey value for this AddressSoap.
296      * 
297      * @return primaryKey
298      */
299     public long getPrimaryKey() {
300         return primaryKey;
301     }
302 
303 
304     /**
305      * Sets the primaryKey value for this AddressSoap.
306      * 
307      * @param primaryKey
308      */
309     public void setPrimaryKey(long primaryKey) {
310         this.primaryKey = primaryKey;
311     }
312 
313 
314     /**
315      * Gets the regionId value for this AddressSoap.
316      * 
317      * @return regionId
318      */
319     public long getRegionId() {
320         return regionId;
321     }
322 
323 
324     /**
325      * Sets the regionId value for this AddressSoap.
326      * 
327      * @param regionId
328      */
329     public void setRegionId(long regionId) {
330         this.regionId = regionId;
331     }
332 
333 
334     /**
335      * Gets the street1 value for this AddressSoap.
336      * 
337      * @return street1
338      */
339     public java.lang.String getStreet1() {
340         return street1;
341     }
342 
343 
344     /**
345      * Sets the street1 value for this AddressSoap.
346      * 
347      * @param street1
348      */
349     public void setStreet1(java.lang.String street1) {
350         this.street1 = street1;
351     }
352 
353 
354     /**
355      * Gets the street2 value for this AddressSoap.
356      * 
357      * @return street2
358      */
359     public java.lang.String getStreet2() {
360         return street2;
361     }
362 
363 
364     /**
365      * Sets the street2 value for this AddressSoap.
366      * 
367      * @param street2
368      */
369     public void setStreet2(java.lang.String street2) {
370         this.street2 = street2;
371     }
372 
373 
374     /**
375      * Gets the street3 value for this AddressSoap.
376      * 
377      * @return street3
378      */
379     public java.lang.String getStreet3() {
380         return street3;
381     }
382 
383 
384     /**
385      * Sets the street3 value for this AddressSoap.
386      * 
387      * @param street3
388      */
389     public void setStreet3(java.lang.String street3) {
390         this.street3 = street3;
391     }
392 
393 
394     /**
395      * Gets the typeId value for this AddressSoap.
396      * 
397      * @return typeId
398      */
399     public int getTypeId() {
400         return typeId;
401     }
402 
403 
404     /**
405      * Sets the typeId value for this AddressSoap.
406      * 
407      * @param typeId
408      */
409     public void setTypeId(int typeId) {
410         this.typeId = typeId;
411     }
412 
413 
414     /**
415      * Gets the userId value for this AddressSoap.
416      * 
417      * @return userId
418      */
419     public long getUserId() {
420         return userId;
421     }
422 
423 
424     /**
425      * Sets the userId value for this AddressSoap.
426      * 
427      * @param userId
428      */
429     public void setUserId(long userId) {
430         this.userId = userId;
431     }
432 
433 
434     /**
435      * Gets the userName value for this AddressSoap.
436      * 
437      * @return userName
438      */
439     public java.lang.String getUserName() {
440         return userName;
441     }
442 
443 
444     /**
445      * Sets the userName value for this AddressSoap.
446      * 
447      * @param userName
448      */
449     public void setUserName(java.lang.String userName) {
450         this.userName = userName;
451     }
452 
453 
454     /**
455      * Gets the zip value for this AddressSoap.
456      * 
457      * @return zip
458      */
459     public java.lang.String getZip() {
460         return zip;
461     }
462 
463 
464     /**
465      * Sets the zip value for this AddressSoap.
466      * 
467      * @param zip
468      */
469     public void setZip(java.lang.String zip) {
470         this.zip = zip;
471     }
472 
473     private java.lang.Object __equalsCalc = null;
474     public synchronized boolean equals(java.lang.Object obj) {
475         if (!(obj instanceof AddressSoap)) return false;
476         AddressSoap other = (AddressSoap) obj;
477         if (obj == null) return false;
478         if (this == obj) return true;
479         if (__equalsCalc != null) {
480             return (__equalsCalc == obj);
481         }
482         __equalsCalc = obj;
483         boolean _equals;
484         _equals = true && 
485             this.addressId == other.getAddressId() &&
486             ((this.city==null && other.getCity()==null) || 
487              (this.city!=null &&
488               this.city.equals(other.getCity()))) &&
489             this.classNameId == other.getClassNameId() &&
490             this.classPK == other.getClassPK() &&
491             this.companyId == other.getCompanyId() &&
492             this.countryId == other.getCountryId() &&
493             ((this.createDate==null && other.getCreateDate()==null) || 
494              (this.createDate!=null &&
495               this.createDate.equals(other.getCreateDate()))) &&
496             this.mailing == other.isMailing() &&
497             ((this.modifiedDate==null && other.getModifiedDate()==null) || 
498              (this.modifiedDate!=null &&
499               this.modifiedDate.equals(other.getModifiedDate()))) &&
500             this.primary == other.isPrimary() &&
501             this.primaryKey == other.getPrimaryKey() &&
502             this.regionId == other.getRegionId() &&
503             ((this.street1==null && other.getStreet1()==null) || 
504              (this.street1!=null &&
505               this.street1.equals(other.getStreet1()))) &&
506             ((this.street2==null && other.getStreet2()==null) || 
507              (this.street2!=null &&
508               this.street2.equals(other.getStreet2()))) &&
509             ((this.street3==null && other.getStreet3()==null) || 
510              (this.street3!=null &&
511               this.street3.equals(other.getStreet3()))) &&
512             this.typeId == other.getTypeId() &&
513             this.userId == other.getUserId() &&
514             ((this.userName==null && other.getUserName()==null) || 
515              (this.userName!=null &&
516               this.userName.equals(other.getUserName()))) &&
517             ((this.zip==null && other.getZip()==null) || 
518              (this.zip!=null &&
519               this.zip.equals(other.getZip())));
520         __equalsCalc = null;
521         return _equals;
522     }
523 
524     private boolean __hashCodeCalc = false;
525     public synchronized int hashCode() {
526         if (__hashCodeCalc) {
527             return 0;
528         }
529         __hashCodeCalc = true;
530         int _hashCode = 1;
531         _hashCode += new Long(getAddressId()).hashCode();
532         if (getCity() != null) {
533             _hashCode += getCity().hashCode();
534         }
535         _hashCode += new Long(getClassNameId()).hashCode();
536         _hashCode += new Long(getClassPK()).hashCode();
537         _hashCode += new Long(getCompanyId()).hashCode();
538         _hashCode += new Long(getCountryId()).hashCode();
539         if (getCreateDate() != null) {
540             _hashCode += getCreateDate().hashCode();
541         }
542         _hashCode += (isMailing() ? Boolean.TRUE : Boolean.FALSE).hashCode();
543         if (getModifiedDate() != null) {
544             _hashCode += getModifiedDate().hashCode();
545         }
546         _hashCode += (isPrimary() ? Boolean.TRUE : Boolean.FALSE).hashCode();
547         _hashCode += new Long(getPrimaryKey()).hashCode();
548         _hashCode += new Long(getRegionId()).hashCode();
549         if (getStreet1() != null) {
550             _hashCode += getStreet1().hashCode();
551         }
552         if (getStreet2() != null) {
553             _hashCode += getStreet2().hashCode();
554         }
555         if (getStreet3() != null) {
556             _hashCode += getStreet3().hashCode();
557         }
558         _hashCode += getTypeId();
559         _hashCode += new Long(getUserId()).hashCode();
560         if (getUserName() != null) {
561             _hashCode += getUserName().hashCode();
562         }
563         if (getZip() != null) {
564             _hashCode += getZip().hashCode();
565         }
566         __hashCodeCalc = false;
567         return _hashCode;
568     }
569 
570     // Type metadata
571     private static org.apache.axis.description.TypeDesc typeDesc =
572         new org.apache.axis.description.TypeDesc(AddressSoap.class, true);
573 
574     static {
575         typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "AddressSoap"));
576         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
577         elemField.setFieldName("addressId");
578         elemField.setXmlName(new javax.xml.namespace.QName("", "addressId"));
579         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
580         elemField.setNillable(false);
581         typeDesc.addFieldDesc(elemField);
582         elemField = new org.apache.axis.description.ElementDesc();
583         elemField.setFieldName("city");
584         elemField.setXmlName(new javax.xml.namespace.QName("", "city"));
585         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
586         elemField.setNillable(true);
587         typeDesc.addFieldDesc(elemField);
588         elemField = new org.apache.axis.description.ElementDesc();
589         elemField.setFieldName("classNameId");
590         elemField.setXmlName(new javax.xml.namespace.QName("", "classNameId"));
591         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
592         elemField.setNillable(false);
593         typeDesc.addFieldDesc(elemField);
594         elemField = new org.apache.axis.description.ElementDesc();
595         elemField.setFieldName("classPK");
596         elemField.setXmlName(new javax.xml.namespace.QName("", "classPK"));
597         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
598         elemField.setNillable(false);
599         typeDesc.addFieldDesc(elemField);
600         elemField = new org.apache.axis.description.ElementDesc();
601         elemField.setFieldName("companyId");
602         elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
603         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
604         elemField.setNillable(false);
605         typeDesc.addFieldDesc(elemField);
606         elemField = new org.apache.axis.description.ElementDesc();
607         elemField.setFieldName("countryId");
608         elemField.setXmlName(new javax.xml.namespace.QName("", "countryId"));
609         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
610         elemField.setNillable(false);
611         typeDesc.addFieldDesc(elemField);
612         elemField = new org.apache.axis.description.ElementDesc();
613         elemField.setFieldName("createDate");
614         elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
615         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
616         elemField.setNillable(true);
617         typeDesc.addFieldDesc(elemField);
618         elemField = new org.apache.axis.description.ElementDesc();
619         elemField.setFieldName("mailing");
620         elemField.setXmlName(new javax.xml.namespace.QName("", "mailing"));
621         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
622         elemField.setNillable(false);
623         typeDesc.addFieldDesc(elemField);
624         elemField = new org.apache.axis.description.ElementDesc();
625         elemField.setFieldName("modifiedDate");
626         elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate"));
627         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
628         elemField.setNillable(true);
629         typeDesc.addFieldDesc(elemField);
630         elemField = new org.apache.axis.description.ElementDesc();
631         elemField.setFieldName("primary");
632         elemField.setXmlName(new javax.xml.namespace.QName("", "primary"));
633         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
634         elemField.setNillable(false);
635         typeDesc.addFieldDesc(elemField);
636         elemField = new org.apache.axis.description.ElementDesc();
637         elemField.setFieldName("primaryKey");
638         elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
639         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
640         elemField.setNillable(false);
641         typeDesc.addFieldDesc(elemField);
642         elemField = new org.apache.axis.description.ElementDesc();
643         elemField.setFieldName("regionId");
644         elemField.setXmlName(new javax.xml.namespace.QName("", "regionId"));
645         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
646         elemField.setNillable(false);
647         typeDesc.addFieldDesc(elemField);
648         elemField = new org.apache.axis.description.ElementDesc();
649         elemField.setFieldName("street1");
650         elemField.setXmlName(new javax.xml.namespace.QName("", "street1"));
651         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
652         elemField.setNillable(true);
653         typeDesc.addFieldDesc(elemField);
654         elemField = new org.apache.axis.description.ElementDesc();
655         elemField.setFieldName("street2");
656         elemField.setXmlName(new javax.xml.namespace.QName("", "street2"));
657         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
658         elemField.setNillable(true);
659         typeDesc.addFieldDesc(elemField);
660         elemField = new org.apache.axis.description.ElementDesc();
661         elemField.setFieldName("street3");
662         elemField.setXmlName(new javax.xml.namespace.QName("", "street3"));
663         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
664         elemField.setNillable(true);
665         typeDesc.addFieldDesc(elemField);
666         elemField = new org.apache.axis.description.ElementDesc();
667         elemField.setFieldName("typeId");
668         elemField.setXmlName(new javax.xml.namespace.QName("", "typeId"));
669         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
670         elemField.setNillable(false);
671         typeDesc.addFieldDesc(elemField);
672         elemField = new org.apache.axis.description.ElementDesc();
673         elemField.setFieldName("userId");
674         elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
675         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
676         elemField.setNillable(false);
677         typeDesc.addFieldDesc(elemField);
678         elemField = new org.apache.axis.description.ElementDesc();
679         elemField.setFieldName("userName");
680         elemField.setXmlName(new javax.xml.namespace.QName("", "userName"));
681         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
682         elemField.setNillable(true);
683         typeDesc.addFieldDesc(elemField);
684         elemField = new org.apache.axis.description.ElementDesc();
685         elemField.setFieldName("zip");
686         elemField.setXmlName(new javax.xml.namespace.QName("", "zip"));
687         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
688         elemField.setNillable(true);
689         typeDesc.addFieldDesc(elemField);
690     }
691 
692     /**
693      * Return type metadata object
694      */
695     public static org.apache.axis.description.TypeDesc getTypeDesc() {
696         return typeDesc;
697     }
698 
699     /**
700      * Get Custom Serializer
701      */
702     public static org.apache.axis.encoding.Serializer getSerializer(
703            java.lang.String mechType, 
704            java.lang.Class _javaType,  
705            javax.xml.namespace.QName _xmlType) {
706         return 
707           new  org.apache.axis.encoding.ser.BeanSerializer(
708             _javaType, _xmlType, typeDesc);
709     }
710 
711     /**
712      * Get Custom Deserializer
713      */
714     public static org.apache.axis.encoding.Deserializer getDeserializer(
715            java.lang.String mechType, 
716            java.lang.Class _javaType,  
717            javax.xml.namespace.QName _xmlType) {
718         return 
719           new  org.apache.axis.encoding.ser.BeanDeserializer(
720             _javaType, _xmlType, typeDesc);
721     }
722 
723 }
724