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