View Javadoc

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