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