View Javadoc

1   /**
2    * Copyright (C) 2008 Atlassian
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *    http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  /**
18   * RemoteComment.java
19   *
20   * This file was auto-generated from WSDL
21   * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
22   */
23  
24  package com.atlassian.theplugin.jira.api.soap.axis;
25  
26  public class RemoteComment  implements java.io.Serializable {
27      private java.lang.String author;
28  
29      private java.lang.String body;
30  
31      private java.util.Calendar created;
32  
33      private java.lang.String groupLevel;
34  
35      private java.lang.String id;
36  
37      private java.lang.String roleLevel;
38  
39      private java.lang.String updateAuthor;
40  
41      private java.util.Calendar updated;
42  
43      public RemoteComment() {
44      }
45  
46      public RemoteComment(
47             java.lang.String author,
48             java.lang.String body,
49             java.util.Calendar created,
50             java.lang.String groupLevel,
51             java.lang.String id,
52             java.lang.String roleLevel,
53             java.lang.String updateAuthor,
54             java.util.Calendar updated) {
55             this.author = author;
56             this.body = body;
57             this.created = created;
58             this.groupLevel = groupLevel;
59             this.id = id;
60             this.roleLevel = roleLevel;
61             this.updateAuthor = updateAuthor;
62             this.updated = updated;
63      }
64  
65  
66      /**
67       * Gets the author value for this RemoteComment.
68       * 
69       * @return author
70       */
71      public java.lang.String getAuthor() {
72          return author;
73      }
74  
75  
76      /**
77       * Sets the author value for this RemoteComment.
78       * 
79       * @param author
80       */
81      public void setAuthor(java.lang.String author) {
82          this.author = author;
83      }
84  
85  
86      /**
87       * Gets the body value for this RemoteComment.
88       * 
89       * @return body
90       */
91      public java.lang.String getBody() {
92          return body;
93      }
94  
95  
96      /**
97       * Sets the body value for this RemoteComment.
98       * 
99       * @param body
100      */
101     public void setBody(java.lang.String body) {
102         this.body = body;
103     }
104 
105 
106     /**
107      * Gets the created value for this RemoteComment.
108      * 
109      * @return created
110      */
111     public java.util.Calendar getCreated() {
112         return created;
113     }
114 
115 
116     /**
117      * Sets the created value for this RemoteComment.
118      * 
119      * @param created
120      */
121     public void setCreated(java.util.Calendar created) {
122         this.created = created;
123     }
124 
125 
126     /**
127      * Gets the groupLevel value for this RemoteComment.
128      * 
129      * @return groupLevel
130      */
131     public java.lang.String getGroupLevel() {
132         return groupLevel;
133     }
134 
135 
136     /**
137      * Sets the groupLevel value for this RemoteComment.
138      * 
139      * @param groupLevel
140      */
141     public void setGroupLevel(java.lang.String groupLevel) {
142         this.groupLevel = groupLevel;
143     }
144 
145 
146     /**
147      * Gets the id value for this RemoteComment.
148      * 
149      * @return id
150      */
151     public java.lang.String getId() {
152         return id;
153     }
154 
155 
156     /**
157      * Sets the id value for this RemoteComment.
158      * 
159      * @param id
160      */
161     public void setId(java.lang.String id) {
162         this.id = id;
163     }
164 
165 
166     /**
167      * Gets the roleLevel value for this RemoteComment.
168      * 
169      * @return roleLevel
170      */
171     public java.lang.String getRoleLevel() {
172         return roleLevel;
173     }
174 
175 
176     /**
177      * Sets the roleLevel value for this RemoteComment.
178      * 
179      * @param roleLevel
180      */
181     public void setRoleLevel(java.lang.String roleLevel) {
182         this.roleLevel = roleLevel;
183     }
184 
185 
186     /**
187      * Gets the updateAuthor value for this RemoteComment.
188      * 
189      * @return updateAuthor
190      */
191     public java.lang.String getUpdateAuthor() {
192         return updateAuthor;
193     }
194 
195 
196     /**
197      * Sets the updateAuthor value for this RemoteComment.
198      * 
199      * @param updateAuthor
200      */
201     public void setUpdateAuthor(java.lang.String updateAuthor) {
202         this.updateAuthor = updateAuthor;
203     }
204 
205 
206     /**
207      * Gets the updated value for this RemoteComment.
208      * 
209      * @return updated
210      */
211     public java.util.Calendar getUpdated() {
212         return updated;
213     }
214 
215 
216     /**
217      * Sets the updated value for this RemoteComment.
218      * 
219      * @param updated
220      */
221     public void setUpdated(java.util.Calendar updated) {
222         this.updated = updated;
223     }
224 
225     private java.lang.Object __equalsCalc = null;
226     public synchronized boolean equals(java.lang.Object obj) {
227         if (!(obj instanceof RemoteComment)) return false;
228         RemoteComment other = (RemoteComment) obj;
229         if (obj == null) return false;
230         if (this == obj) return true;
231         if (__equalsCalc != null) {
232             return (__equalsCalc == obj);
233         }
234         __equalsCalc = obj;
235         boolean _equals;
236         _equals = true && 
237             ((this.author==null && other.getAuthor()==null) || 
238              (this.author!=null &&
239               this.author.equals(other.getAuthor()))) &&
240             ((this.body==null && other.getBody()==null) || 
241              (this.body!=null &&
242               this.body.equals(other.getBody()))) &&
243             ((this.created==null && other.getCreated()==null) || 
244              (this.created!=null &&
245               this.created.equals(other.getCreated()))) &&
246             ((this.groupLevel==null && other.getGroupLevel()==null) || 
247              (this.groupLevel!=null &&
248               this.groupLevel.equals(other.getGroupLevel()))) &&
249             ((this.id==null && other.getId()==null) || 
250              (this.id!=null &&
251               this.id.equals(other.getId()))) &&
252             ((this.roleLevel==null && other.getRoleLevel()==null) || 
253              (this.roleLevel!=null &&
254               this.roleLevel.equals(other.getRoleLevel()))) &&
255             ((this.updateAuthor==null && other.getUpdateAuthor()==null) || 
256              (this.updateAuthor!=null &&
257               this.updateAuthor.equals(other.getUpdateAuthor()))) &&
258             ((this.updated==null && other.getUpdated()==null) || 
259              (this.updated!=null &&
260               this.updated.equals(other.getUpdated())));
261         __equalsCalc = null;
262         return _equals;
263     }
264 
265     private boolean __hashCodeCalc = false;
266     public synchronized int hashCode() {
267         if (__hashCodeCalc) {
268             return 0;
269         }
270         __hashCodeCalc = true;
271         int _hashCode = 1;
272         if (getAuthor() != null) {
273             _hashCode += getAuthor().hashCode();
274         }
275         if (getBody() != null) {
276             _hashCode += getBody().hashCode();
277         }
278         if (getCreated() != null) {
279             _hashCode += getCreated().hashCode();
280         }
281         if (getGroupLevel() != null) {
282             _hashCode += getGroupLevel().hashCode();
283         }
284         if (getId() != null) {
285             _hashCode += getId().hashCode();
286         }
287         if (getRoleLevel() != null) {
288             _hashCode += getRoleLevel().hashCode();
289         }
290         if (getUpdateAuthor() != null) {
291             _hashCode += getUpdateAuthor().hashCode();
292         }
293         if (getUpdated() != null) {
294             _hashCode += getUpdated().hashCode();
295         }
296         __hashCodeCalc = false;
297         return _hashCode;
298     }
299 
300     // Type metadata
301     private static org.apache.axis.description.TypeDesc typeDesc =
302         new org.apache.axis.description.TypeDesc(RemoteComment.class, true);
303 
304     static {
305         typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteComment"));
306         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
307         elemField.setFieldName("author");
308         elemField.setXmlName(new javax.xml.namespace.QName("", "author"));
309         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
310         elemField.setNillable(true);
311         typeDesc.addFieldDesc(elemField);
312         elemField = new org.apache.axis.description.ElementDesc();
313         elemField.setFieldName("body");
314         elemField.setXmlName(new javax.xml.namespace.QName("", "body"));
315         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
316         elemField.setNillable(true);
317         typeDesc.addFieldDesc(elemField);
318         elemField = new org.apache.axis.description.ElementDesc();
319         elemField.setFieldName("created");
320         elemField.setXmlName(new javax.xml.namespace.QName("", "created"));
321         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
322         elemField.setNillable(true);
323         typeDesc.addFieldDesc(elemField);
324         elemField = new org.apache.axis.description.ElementDesc();
325         elemField.setFieldName("groupLevel");
326         elemField.setXmlName(new javax.xml.namespace.QName("", "groupLevel"));
327         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
328         elemField.setNillable(true);
329         typeDesc.addFieldDesc(elemField);
330         elemField = new org.apache.axis.description.ElementDesc();
331         elemField.setFieldName("id");
332         elemField.setXmlName(new javax.xml.namespace.QName("", "id"));
333         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
334         elemField.setNillable(true);
335         typeDesc.addFieldDesc(elemField);
336         elemField = new org.apache.axis.description.ElementDesc();
337         elemField.setFieldName("roleLevel");
338         elemField.setXmlName(new javax.xml.namespace.QName("", "roleLevel"));
339         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
340         elemField.setNillable(true);
341         typeDesc.addFieldDesc(elemField);
342         elemField = new org.apache.axis.description.ElementDesc();
343         elemField.setFieldName("updateAuthor");
344         elemField.setXmlName(new javax.xml.namespace.QName("", "updateAuthor"));
345         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
346         elemField.setNillable(true);
347         typeDesc.addFieldDesc(elemField);
348         elemField = new org.apache.axis.description.ElementDesc();
349         elemField.setFieldName("updated");
350         elemField.setXmlName(new javax.xml.namespace.QName("", "updated"));
351         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
352         elemField.setNillable(true);
353         typeDesc.addFieldDesc(elemField);
354     }
355 
356     /**
357      * Return type metadata object
358      */
359     public static org.apache.axis.description.TypeDesc getTypeDesc() {
360         return typeDesc;
361     }
362 
363     /**
364      * Get Custom Serializer
365      */
366     public static org.apache.axis.encoding.Serializer getSerializer(
367            java.lang.String mechType, 
368            java.lang.Class _javaType,  
369            javax.xml.namespace.QName _xmlType) {
370         return 
371           new  org.apache.axis.encoding.ser.BeanSerializer(
372             _javaType, _xmlType, typeDesc);
373     }
374 
375     /**
376      * Get Custom Deserializer
377      */
378     public static org.apache.axis.encoding.Deserializer getDeserializer(
379            java.lang.String mechType, 
380            java.lang.Class _javaType,  
381            javax.xml.namespace.QName _xmlType) {
382         return 
383           new  org.apache.axis.encoding.ser.BeanDeserializer(
384             _javaType, _xmlType, typeDesc);
385     }
386 
387 }