1   /**
2    * AssetTagPropertySoap.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.portlet.asset.model;
9   
10  public class AssetTagPropertySoap  implements java.io.Serializable {
11      private long companyId;
12  
13      private java.util.Calendar createDate;
14  
15      private java.lang.String key;
16  
17      private java.util.Calendar modifiedDate;
18  
19      private long primaryKey;
20  
21      private long tagId;
22  
23      private long tagPropertyId;
24  
25      private long userId;
26  
27      private java.lang.String userName;
28  
29      private java.lang.String value;
30  
31      public AssetTagPropertySoap() {
32      }
33  
34      public AssetTagPropertySoap(
35             long companyId,
36             java.util.Calendar createDate,
37             java.lang.String key,
38             java.util.Calendar modifiedDate,
39             long primaryKey,
40             long tagId,
41             long tagPropertyId,
42             long userId,
43             java.lang.String userName,
44             java.lang.String value) {
45             this.companyId = companyId;
46             this.createDate = createDate;
47             this.key = key;
48             this.modifiedDate = modifiedDate;
49             this.primaryKey = primaryKey;
50             this.tagId = tagId;
51             this.tagPropertyId = tagPropertyId;
52             this.userId = userId;
53             this.userName = userName;
54             this.value = value;
55      }
56  
57  
58      /**
59       * Gets the companyId value for this AssetTagPropertySoap.
60       * 
61       * @return companyId
62       */
63      public long getCompanyId() {
64          return companyId;
65      }
66  
67  
68      /**
69       * Sets the companyId value for this AssetTagPropertySoap.
70       * 
71       * @param companyId
72       */
73      public void setCompanyId(long companyId) {
74          this.companyId = companyId;
75      }
76  
77  
78      /**
79       * Gets the createDate value for this AssetTagPropertySoap.
80       * 
81       * @return createDate
82       */
83      public java.util.Calendar getCreateDate() {
84          return createDate;
85      }
86  
87  
88      /**
89       * Sets the createDate value for this AssetTagPropertySoap.
90       * 
91       * @param createDate
92       */
93      public void setCreateDate(java.util.Calendar createDate) {
94          this.createDate = createDate;
95      }
96  
97  
98      /**
99       * Gets the key value for this AssetTagPropertySoap.
100      * 
101      * @return key
102      */
103     public java.lang.String getKey() {
104         return key;
105     }
106 
107 
108     /**
109      * Sets the key value for this AssetTagPropertySoap.
110      * 
111      * @param key
112      */
113     public void setKey(java.lang.String key) {
114         this.key = key;
115     }
116 
117 
118     /**
119      * Gets the modifiedDate value for this AssetTagPropertySoap.
120      * 
121      * @return modifiedDate
122      */
123     public java.util.Calendar getModifiedDate() {
124         return modifiedDate;
125     }
126 
127 
128     /**
129      * Sets the modifiedDate value for this AssetTagPropertySoap.
130      * 
131      * @param modifiedDate
132      */
133     public void setModifiedDate(java.util.Calendar modifiedDate) {
134         this.modifiedDate = modifiedDate;
135     }
136 
137 
138     /**
139      * Gets the primaryKey value for this AssetTagPropertySoap.
140      * 
141      * @return primaryKey
142      */
143     public long getPrimaryKey() {
144         return primaryKey;
145     }
146 
147 
148     /**
149      * Sets the primaryKey value for this AssetTagPropertySoap.
150      * 
151      * @param primaryKey
152      */
153     public void setPrimaryKey(long primaryKey) {
154         this.primaryKey = primaryKey;
155     }
156 
157 
158     /**
159      * Gets the tagId value for this AssetTagPropertySoap.
160      * 
161      * @return tagId
162      */
163     public long getTagId() {
164         return tagId;
165     }
166 
167 
168     /**
169      * Sets the tagId value for this AssetTagPropertySoap.
170      * 
171      * @param tagId
172      */
173     public void setTagId(long tagId) {
174         this.tagId = tagId;
175     }
176 
177 
178     /**
179      * Gets the tagPropertyId value for this AssetTagPropertySoap.
180      * 
181      * @return tagPropertyId
182      */
183     public long getTagPropertyId() {
184         return tagPropertyId;
185     }
186 
187 
188     /**
189      * Sets the tagPropertyId value for this AssetTagPropertySoap.
190      * 
191      * @param tagPropertyId
192      */
193     public void setTagPropertyId(long tagPropertyId) {
194         this.tagPropertyId = tagPropertyId;
195     }
196 
197 
198     /**
199      * Gets the userId value for this AssetTagPropertySoap.
200      * 
201      * @return userId
202      */
203     public long getUserId() {
204         return userId;
205     }
206 
207 
208     /**
209      * Sets the userId value for this AssetTagPropertySoap.
210      * 
211      * @param userId
212      */
213     public void setUserId(long userId) {
214         this.userId = userId;
215     }
216 
217 
218     /**
219      * Gets the userName value for this AssetTagPropertySoap.
220      * 
221      * @return userName
222      */
223     public java.lang.String getUserName() {
224         return userName;
225     }
226 
227 
228     /**
229      * Sets the userName value for this AssetTagPropertySoap.
230      * 
231      * @param userName
232      */
233     public void setUserName(java.lang.String userName) {
234         this.userName = userName;
235     }
236 
237 
238     /**
239      * Gets the value value for this AssetTagPropertySoap.
240      * 
241      * @return value
242      */
243     public java.lang.String getValue() {
244         return value;
245     }
246 
247 
248     /**
249      * Sets the value value for this AssetTagPropertySoap.
250      * 
251      * @param value
252      */
253     public void setValue(java.lang.String value) {
254         this.value = value;
255     }
256 
257     private java.lang.Object __equalsCalc = null;
258     public synchronized boolean equals(java.lang.Object obj) {
259         if (!(obj instanceof AssetTagPropertySoap)) return false;
260         AssetTagPropertySoap other = (AssetTagPropertySoap) obj;
261         if (obj == null) return false;
262         if (this == obj) return true;
263         if (__equalsCalc != null) {
264             return (__equalsCalc == obj);
265         }
266         __equalsCalc = obj;
267         boolean _equals;
268         _equals = true && 
269             this.companyId == other.getCompanyId() &&
270             ((this.createDate==null && other.getCreateDate()==null) || 
271              (this.createDate!=null &&
272               this.createDate.equals(other.getCreateDate()))) &&
273             ((this.key==null && other.getKey()==null) || 
274              (this.key!=null &&
275               this.key.equals(other.getKey()))) &&
276             ((this.modifiedDate==null && other.getModifiedDate()==null) || 
277              (this.modifiedDate!=null &&
278               this.modifiedDate.equals(other.getModifiedDate()))) &&
279             this.primaryKey == other.getPrimaryKey() &&
280             this.tagId == other.getTagId() &&
281             this.tagPropertyId == other.getTagPropertyId() &&
282             this.userId == other.getUserId() &&
283             ((this.userName==null && other.getUserName()==null) || 
284              (this.userName!=null &&
285               this.userName.equals(other.getUserName()))) &&
286             ((this.value==null && other.getValue()==null) || 
287              (this.value!=null &&
288               this.value.equals(other.getValue())));
289         __equalsCalc = null;
290         return _equals;
291     }
292 
293     private boolean __hashCodeCalc = false;
294     public synchronized int hashCode() {
295         if (__hashCodeCalc) {
296             return 0;
297         }
298         __hashCodeCalc = true;
299         int _hashCode = 1;
300         _hashCode += new Long(getCompanyId()).hashCode();
301         if (getCreateDate() != null) {
302             _hashCode += getCreateDate().hashCode();
303         }
304         if (getKey() != null) {
305             _hashCode += getKey().hashCode();
306         }
307         if (getModifiedDate() != null) {
308             _hashCode += getModifiedDate().hashCode();
309         }
310         _hashCode += new Long(getPrimaryKey()).hashCode();
311         _hashCode += new Long(getTagId()).hashCode();
312         _hashCode += new Long(getTagPropertyId()).hashCode();
313         _hashCode += new Long(getUserId()).hashCode();
314         if (getUserName() != null) {
315             _hashCode += getUserName().hashCode();
316         }
317         if (getValue() != null) {
318             _hashCode += getValue().hashCode();
319         }
320         __hashCodeCalc = false;
321         return _hashCode;
322     }
323 
324     // Type metadata
325     private static org.apache.axis.description.TypeDesc typeDesc =
326         new org.apache.axis.description.TypeDesc(AssetTagPropertySoap.class, true);
327 
328     static {
329         typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.asset.portlet.liferay.com", "AssetTagPropertySoap"));
330         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
331         elemField.setFieldName("companyId");
332         elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
333         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
334         elemField.setNillable(false);
335         typeDesc.addFieldDesc(elemField);
336         elemField = new org.apache.axis.description.ElementDesc();
337         elemField.setFieldName("createDate");
338         elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
339         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
340         elemField.setNillable(true);
341         typeDesc.addFieldDesc(elemField);
342         elemField = new org.apache.axis.description.ElementDesc();
343         elemField.setFieldName("key");
344         elemField.setXmlName(new javax.xml.namespace.QName("", "key"));
345         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
346         elemField.setNillable(true);
347         typeDesc.addFieldDesc(elemField);
348         elemField = new org.apache.axis.description.ElementDesc();
349         elemField.setFieldName("modifiedDate");
350         elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate"));
351         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
352         elemField.setNillable(true);
353         typeDesc.addFieldDesc(elemField);
354         elemField = new org.apache.axis.description.ElementDesc();
355         elemField.setFieldName("primaryKey");
356         elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
357         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
358         elemField.setNillable(false);
359         typeDesc.addFieldDesc(elemField);
360         elemField = new org.apache.axis.description.ElementDesc();
361         elemField.setFieldName("tagId");
362         elemField.setXmlName(new javax.xml.namespace.QName("", "tagId"));
363         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
364         elemField.setNillable(false);
365         typeDesc.addFieldDesc(elemField);
366         elemField = new org.apache.axis.description.ElementDesc();
367         elemField.setFieldName("tagPropertyId");
368         elemField.setXmlName(new javax.xml.namespace.QName("", "tagPropertyId"));
369         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
370         elemField.setNillable(false);
371         typeDesc.addFieldDesc(elemField);
372         elemField = new org.apache.axis.description.ElementDesc();
373         elemField.setFieldName("userId");
374         elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
375         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
376         elemField.setNillable(false);
377         typeDesc.addFieldDesc(elemField);
378         elemField = new org.apache.axis.description.ElementDesc();
379         elemField.setFieldName("userName");
380         elemField.setXmlName(new javax.xml.namespace.QName("", "userName"));
381         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
382         elemField.setNillable(true);
383         typeDesc.addFieldDesc(elemField);
384         elemField = new org.apache.axis.description.ElementDesc();
385         elemField.setFieldName("value");
386         elemField.setXmlName(new javax.xml.namespace.QName("", "value"));
387         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
388         elemField.setNillable(true);
389         typeDesc.addFieldDesc(elemField);
390     }
391 
392     /**
393      * Return type metadata object
394      */
395     public static org.apache.axis.description.TypeDesc getTypeDesc() {
396         return typeDesc;
397     }
398 
399     /**
400      * Get Custom Serializer
401      */
402     public static org.apache.axis.encoding.Serializer getSerializer(
403            java.lang.String mechType, 
404            java.lang.Class _javaType,  
405            javax.xml.namespace.QName _xmlType) {
406         return 
407           new  org.apache.axis.encoding.ser.BeanSerializer(
408             _javaType, _xmlType, typeDesc);
409     }
410 
411     /**
412      * Get Custom Deserializer
413      */
414     public static org.apache.axis.encoding.Deserializer getDeserializer(
415            java.lang.String mechType, 
416            java.lang.Class _javaType,  
417            javax.xml.namespace.QName _xmlType) {
418         return 
419           new  org.apache.axis.encoding.ser.BeanDeserializer(
420             _javaType, _xmlType, typeDesc);
421     }
422 
423 }
424