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