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