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