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   * RemoteWorklog.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 RemoteWorklog  implements java.io.Serializable {
27      private java.lang.String author;
28  
29      private java.lang.String comment;
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 roleLevelId;
38  
39      private java.util.Calendar startDate;
40  
41      private java.lang.String timeSpent;
42  
43      private long timeSpentInSeconds;
44  
45      private java.lang.String updateAuthor;
46  
47      private java.util.Calendar updated;
48  
49      public RemoteWorklog() {
50      }
51  
52      public RemoteWorklog(
53             java.lang.String author,
54             java.lang.String comment,
55             java.util.Calendar created,
56             java.lang.String groupLevel,
57             java.lang.String id,
58             java.lang.String roleLevelId,
59             java.util.Calendar startDate,
60             java.lang.String timeSpent,
61             long timeSpentInSeconds,
62             java.lang.String updateAuthor,
63             java.util.Calendar updated) {
64             this.author = author;
65             this.comment = comment;
66             this.created = created;
67             this.groupLevel = groupLevel;
68             this.id = id;
69             this.roleLevelId = roleLevelId;
70             this.startDate = startDate;
71             this.timeSpent = timeSpent;
72             this.timeSpentInSeconds = timeSpentInSeconds;
73             this.updateAuthor = updateAuthor;
74             this.updated = updated;
75      }
76  
77  
78      /**
79       * Gets the author value for this RemoteWorklog.
80       * 
81       * @return author
82       */
83      public java.lang.String getAuthor() {
84          return author;
85      }
86  
87  
88      /**
89       * Sets the author value for this RemoteWorklog.
90       * 
91       * @param author
92       */
93      public void setAuthor(java.lang.String author) {
94          this.author = author;
95      }
96  
97  
98      /**
99       * Gets the comment value for this RemoteWorklog.
100      * 
101      * @return comment
102      */
103     public java.lang.String getComment() {
104         return comment;
105     }
106 
107 
108     /**
109      * Sets the comment value for this RemoteWorklog.
110      * 
111      * @param comment
112      */
113     public void setComment(java.lang.String comment) {
114         this.comment = comment;
115     }
116 
117 
118     /**
119      * Gets the created value for this RemoteWorklog.
120      * 
121      * @return created
122      */
123     public java.util.Calendar getCreated() {
124         return created;
125     }
126 
127 
128     /**
129      * Sets the created value for this RemoteWorklog.
130      * 
131      * @param created
132      */
133     public void setCreated(java.util.Calendar created) {
134         this.created = created;
135     }
136 
137 
138     /**
139      * Gets the groupLevel value for this RemoteWorklog.
140      * 
141      * @return groupLevel
142      */
143     public java.lang.String getGroupLevel() {
144         return groupLevel;
145     }
146 
147 
148     /**
149      * Sets the groupLevel value for this RemoteWorklog.
150      * 
151      * @param groupLevel
152      */
153     public void setGroupLevel(java.lang.String groupLevel) {
154         this.groupLevel = groupLevel;
155     }
156 
157 
158     /**
159      * Gets the id value for this RemoteWorklog.
160      * 
161      * @return id
162      */
163     public java.lang.String getId() {
164         return id;
165     }
166 
167 
168     /**
169      * Sets the id value for this RemoteWorklog.
170      * 
171      * @param id
172      */
173     public void setId(java.lang.String id) {
174         this.id = id;
175     }
176 
177 
178     /**
179      * Gets the roleLevelId value for this RemoteWorklog.
180      * 
181      * @return roleLevelId
182      */
183     public java.lang.String getRoleLevelId() {
184         return roleLevelId;
185     }
186 
187 
188     /**
189      * Sets the roleLevelId value for this RemoteWorklog.
190      * 
191      * @param roleLevelId
192      */
193     public void setRoleLevelId(java.lang.String roleLevelId) {
194         this.roleLevelId = roleLevelId;
195     }
196 
197 
198     /**
199      * Gets the startDate value for this RemoteWorklog.
200      * 
201      * @return startDate
202      */
203     public java.util.Calendar getStartDate() {
204         return startDate;
205     }
206 
207 
208     /**
209      * Sets the startDate value for this RemoteWorklog.
210      * 
211      * @param startDate
212      */
213     public void setStartDate(java.util.Calendar startDate) {
214         this.startDate = startDate;
215     }
216 
217 
218     /**
219      * Gets the timeSpent value for this RemoteWorklog.
220      * 
221      * @return timeSpent
222      */
223     public java.lang.String getTimeSpent() {
224         return timeSpent;
225     }
226 
227 
228     /**
229      * Sets the timeSpent value for this RemoteWorklog.
230      * 
231      * @param timeSpent
232      */
233     public void setTimeSpent(java.lang.String timeSpent) {
234         this.timeSpent = timeSpent;
235     }
236 
237 
238     /**
239      * Gets the timeSpentInSeconds value for this RemoteWorklog.
240      * 
241      * @return timeSpentInSeconds
242      */
243     public long getTimeSpentInSeconds() {
244         return timeSpentInSeconds;
245     }
246 
247 
248     /**
249      * Sets the timeSpentInSeconds value for this RemoteWorklog.
250      * 
251      * @param timeSpentInSeconds
252      */
253     public void setTimeSpentInSeconds(long timeSpentInSeconds) {
254         this.timeSpentInSeconds = timeSpentInSeconds;
255     }
256 
257 
258     /**
259      * Gets the updateAuthor value for this RemoteWorklog.
260      * 
261      * @return updateAuthor
262      */
263     public java.lang.String getUpdateAuthor() {
264         return updateAuthor;
265     }
266 
267 
268     /**
269      * Sets the updateAuthor value for this RemoteWorklog.
270      * 
271      * @param updateAuthor
272      */
273     public void setUpdateAuthor(java.lang.String updateAuthor) {
274         this.updateAuthor = updateAuthor;
275     }
276 
277 
278     /**
279      * Gets the updated value for this RemoteWorklog.
280      * 
281      * @return updated
282      */
283     public java.util.Calendar getUpdated() {
284         return updated;
285     }
286 
287 
288     /**
289      * Sets the updated value for this RemoteWorklog.
290      * 
291      * @param updated
292      */
293     public void setUpdated(java.util.Calendar updated) {
294         this.updated = updated;
295     }
296 
297     private java.lang.Object __equalsCalc = null;
298     public synchronized boolean equals(java.lang.Object obj) {
299         if (!(obj instanceof RemoteWorklog)) return false;
300         RemoteWorklog other = (RemoteWorklog) obj;
301         if (obj == null) return false;
302         if (this == obj) return true;
303         if (__equalsCalc != null) {
304             return (__equalsCalc == obj);
305         }
306         __equalsCalc = obj;
307         boolean _equals;
308         _equals = true && 
309             ((this.author==null && other.getAuthor()==null) || 
310              (this.author!=null &&
311               this.author.equals(other.getAuthor()))) &&
312             ((this.comment==null && other.getComment()==null) || 
313              (this.comment!=null &&
314               this.comment.equals(other.getComment()))) &&
315             ((this.created==null && other.getCreated()==null) || 
316              (this.created!=null &&
317               this.created.equals(other.getCreated()))) &&
318             ((this.groupLevel==null && other.getGroupLevel()==null) || 
319              (this.groupLevel!=null &&
320               this.groupLevel.equals(other.getGroupLevel()))) &&
321             ((this.id==null && other.getId()==null) || 
322              (this.id!=null &&
323               this.id.equals(other.getId()))) &&
324             ((this.roleLevelId==null && other.getRoleLevelId()==null) || 
325              (this.roleLevelId!=null &&
326               this.roleLevelId.equals(other.getRoleLevelId()))) &&
327             ((this.startDate==null && other.getStartDate()==null) || 
328              (this.startDate!=null &&
329               this.startDate.equals(other.getStartDate()))) &&
330             ((this.timeSpent==null && other.getTimeSpent()==null) || 
331              (this.timeSpent!=null &&
332               this.timeSpent.equals(other.getTimeSpent()))) &&
333             this.timeSpentInSeconds == other.getTimeSpentInSeconds() &&
334             ((this.updateAuthor==null && other.getUpdateAuthor()==null) || 
335              (this.updateAuthor!=null &&
336               this.updateAuthor.equals(other.getUpdateAuthor()))) &&
337             ((this.updated==null && other.getUpdated()==null) || 
338              (this.updated!=null &&
339               this.updated.equals(other.getUpdated())));
340         __equalsCalc = null;
341         return _equals;
342     }
343 
344     private boolean __hashCodeCalc = false;
345     public synchronized int hashCode() {
346         if (__hashCodeCalc) {
347             return 0;
348         }
349         __hashCodeCalc = true;
350         int _hashCode = 1;
351         if (getAuthor() != null) {
352             _hashCode += getAuthor().hashCode();
353         }
354         if (getComment() != null) {
355             _hashCode += getComment().hashCode();
356         }
357         if (getCreated() != null) {
358             _hashCode += getCreated().hashCode();
359         }
360         if (getGroupLevel() != null) {
361             _hashCode += getGroupLevel().hashCode();
362         }
363         if (getId() != null) {
364             _hashCode += getId().hashCode();
365         }
366         if (getRoleLevelId() != null) {
367             _hashCode += getRoleLevelId().hashCode();
368         }
369         if (getStartDate() != null) {
370             _hashCode += getStartDate().hashCode();
371         }
372         if (getTimeSpent() != null) {
373             _hashCode += getTimeSpent().hashCode();
374         }
375         _hashCode += new Long(getTimeSpentInSeconds()).hashCode();
376         if (getUpdateAuthor() != null) {
377             _hashCode += getUpdateAuthor().hashCode();
378         }
379         if (getUpdated() != null) {
380             _hashCode += getUpdated().hashCode();
381         }
382         __hashCodeCalc = false;
383         return _hashCode;
384     }
385 
386     // Type metadata
387     private static org.apache.axis.description.TypeDesc typeDesc =
388         new org.apache.axis.description.TypeDesc(RemoteWorklog.class, true);
389 
390     static {
391         typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteWorklog"));
392         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
393         elemField.setFieldName("author");
394         elemField.setXmlName(new javax.xml.namespace.QName("", "author"));
395         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
396         elemField.setNillable(true);
397         typeDesc.addFieldDesc(elemField);
398         elemField = new org.apache.axis.description.ElementDesc();
399         elemField.setFieldName("comment");
400         elemField.setXmlName(new javax.xml.namespace.QName("", "comment"));
401         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
402         elemField.setNillable(true);
403         typeDesc.addFieldDesc(elemField);
404         elemField = new org.apache.axis.description.ElementDesc();
405         elemField.setFieldName("created");
406         elemField.setXmlName(new javax.xml.namespace.QName("", "created"));
407         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
408         elemField.setNillable(true);
409         typeDesc.addFieldDesc(elemField);
410         elemField = new org.apache.axis.description.ElementDesc();
411         elemField.setFieldName("groupLevel");
412         elemField.setXmlName(new javax.xml.namespace.QName("", "groupLevel"));
413         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
414         elemField.setNillable(true);
415         typeDesc.addFieldDesc(elemField);
416         elemField = new org.apache.axis.description.ElementDesc();
417         elemField.setFieldName("id");
418         elemField.setXmlName(new javax.xml.namespace.QName("", "id"));
419         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
420         elemField.setNillable(true);
421         typeDesc.addFieldDesc(elemField);
422         elemField = new org.apache.axis.description.ElementDesc();
423         elemField.setFieldName("roleLevelId");
424         elemField.setXmlName(new javax.xml.namespace.QName("", "roleLevelId"));
425         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
426         elemField.setNillable(true);
427         typeDesc.addFieldDesc(elemField);
428         elemField = new org.apache.axis.description.ElementDesc();
429         elemField.setFieldName("startDate");
430         elemField.setXmlName(new javax.xml.namespace.QName("", "startDate"));
431         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
432         elemField.setNillable(true);
433         typeDesc.addFieldDesc(elemField);
434         elemField = new org.apache.axis.description.ElementDesc();
435         elemField.setFieldName("timeSpent");
436         elemField.setXmlName(new javax.xml.namespace.QName("", "timeSpent"));
437         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
438         elemField.setNillable(true);
439         typeDesc.addFieldDesc(elemField);
440         elemField = new org.apache.axis.description.ElementDesc();
441         elemField.setFieldName("timeSpentInSeconds");
442         elemField.setXmlName(new javax.xml.namespace.QName("", "timeSpentInSeconds"));
443         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
444         elemField.setNillable(false);
445         typeDesc.addFieldDesc(elemField);
446         elemField = new org.apache.axis.description.ElementDesc();
447         elemField.setFieldName("updateAuthor");
448         elemField.setXmlName(new javax.xml.namespace.QName("", "updateAuthor"));
449         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
450         elemField.setNillable(true);
451         typeDesc.addFieldDesc(elemField);
452         elemField = new org.apache.axis.description.ElementDesc();
453         elemField.setFieldName("updated");
454         elemField.setXmlName(new javax.xml.namespace.QName("", "updated"));
455         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
456         elemField.setNillable(true);
457         typeDesc.addFieldDesc(elemField);
458     }
459 
460     /**
461      * Return type metadata object
462      */
463     public static org.apache.axis.description.TypeDesc getTypeDesc() {
464         return typeDesc;
465     }
466 
467     /**
468      * Get Custom Serializer
469      */
470     public static org.apache.axis.encoding.Serializer getSerializer(
471            java.lang.String mechType, 
472            java.lang.Class _javaType,  
473            javax.xml.namespace.QName _xmlType) {
474         return 
475           new  org.apache.axis.encoding.ser.BeanSerializer(
476             _javaType, _xmlType, typeDesc);
477     }
478 
479     /**
480      * Get Custom Deserializer
481      */
482     public static org.apache.axis.encoding.Deserializer getDeserializer(
483            java.lang.String mechType, 
484            java.lang.Class _javaType,  
485            javax.xml.namespace.QName _xmlType) {
486         return 
487           new  org.apache.axis.encoding.ser.BeanDeserializer(
488             _javaType, _xmlType, typeDesc);
489     }
490 
491 }