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