1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
package org.apache.maven.plugins.patchtracker.tracking.jira.soap; |
9 | |
|
10 | |
public class RemoteVersion extends org.apache.maven.plugins.patchtracker.tracking.jira.soap.AbstractNamedRemoteEntity implements java.io.Serializable { |
11 | |
private boolean archived; |
12 | |
|
13 | |
private java.util.Calendar releaseDate; |
14 | |
|
15 | |
private boolean released; |
16 | |
|
17 | |
private java.lang.Long sequence; |
18 | |
|
19 | 0 | public RemoteVersion() { |
20 | 0 | } |
21 | |
|
22 | |
public RemoteVersion( |
23 | |
java.lang.String id, |
24 | |
java.lang.String name, |
25 | |
boolean archived, |
26 | |
java.util.Calendar releaseDate, |
27 | |
boolean released, |
28 | |
java.lang.Long sequence) { |
29 | 0 | super( |
30 | |
id, |
31 | |
name); |
32 | 0 | this.archived = archived; |
33 | 0 | this.releaseDate = releaseDate; |
34 | 0 | this.released = released; |
35 | 0 | this.sequence = sequence; |
36 | 0 | } |
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
|
43 | |
|
44 | |
public boolean isArchived() { |
45 | 0 | return archived; |
46 | |
} |
47 | |
|
48 | |
|
49 | |
|
50 | |
|
51 | |
|
52 | |
|
53 | |
|
54 | |
public void setArchived(boolean archived) { |
55 | 0 | this.archived = archived; |
56 | 0 | } |
57 | |
|
58 | |
|
59 | |
|
60 | |
|
61 | |
|
62 | |
|
63 | |
|
64 | |
public java.util.Calendar getReleaseDate() { |
65 | 0 | return releaseDate; |
66 | |
} |
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
|
72 | |
|
73 | |
|
74 | |
public void setReleaseDate(java.util.Calendar releaseDate) { |
75 | 0 | this.releaseDate = releaseDate; |
76 | 0 | } |
77 | |
|
78 | |
|
79 | |
|
80 | |
|
81 | |
|
82 | |
|
83 | |
|
84 | |
public boolean isReleased() { |
85 | 0 | return released; |
86 | |
} |
87 | |
|
88 | |
|
89 | |
|
90 | |
|
91 | |
|
92 | |
|
93 | |
|
94 | |
public void setReleased(boolean released) { |
95 | 0 | this.released = released; |
96 | 0 | } |
97 | |
|
98 | |
|
99 | |
|
100 | |
|
101 | |
|
102 | |
|
103 | |
|
104 | |
public java.lang.Long getSequence() { |
105 | 0 | return sequence; |
106 | |
} |
107 | |
|
108 | |
|
109 | |
|
110 | |
|
111 | |
|
112 | |
|
113 | |
|
114 | |
public void setSequence(java.lang.Long sequence) { |
115 | 0 | this.sequence = sequence; |
116 | 0 | } |
117 | |
|
118 | 0 | private java.lang.Object __equalsCalc = null; |
119 | |
public synchronized boolean equals(java.lang.Object obj) { |
120 | 0 | if (!(obj instanceof RemoteVersion)) return false; |
121 | 0 | RemoteVersion other = (RemoteVersion) obj; |
122 | 0 | if (obj == null) return false; |
123 | 0 | if (this == obj) return true; |
124 | 0 | if (__equalsCalc != null) { |
125 | 0 | return (__equalsCalc == obj); |
126 | |
} |
127 | 0 | __equalsCalc = obj; |
128 | |
boolean _equals; |
129 | 0 | _equals = super.equals(obj) && |
130 | |
this.archived == other.isArchived() && |
131 | |
((this.releaseDate==null && other.getReleaseDate()==null) || |
132 | |
(this.releaseDate!=null && |
133 | |
this.releaseDate.equals(other.getReleaseDate()))) && |
134 | |
this.released == other.isReleased() && |
135 | |
((this.sequence==null && other.getSequence()==null) || |
136 | |
(this.sequence!=null && |
137 | |
this.sequence.equals(other.getSequence()))); |
138 | 0 | __equalsCalc = null; |
139 | 0 | return _equals; |
140 | |
} |
141 | |
|
142 | 0 | private boolean __hashCodeCalc = false; |
143 | |
public synchronized int hashCode() { |
144 | 0 | if (__hashCodeCalc) { |
145 | 0 | return 0; |
146 | |
} |
147 | 0 | __hashCodeCalc = true; |
148 | 0 | int _hashCode = super.hashCode(); |
149 | 0 | _hashCode += (isArchived() ? Boolean.TRUE : Boolean.FALSE).hashCode(); |
150 | 0 | if (getReleaseDate() != null) { |
151 | 0 | _hashCode += getReleaseDate().hashCode(); |
152 | |
} |
153 | 0 | _hashCode += (isReleased() ? Boolean.TRUE : Boolean.FALSE).hashCode(); |
154 | 0 | if (getSequence() != null) { |
155 | 0 | _hashCode += getSequence().hashCode(); |
156 | |
} |
157 | 0 | __hashCodeCalc = false; |
158 | 0 | return _hashCode; |
159 | |
} |
160 | |
|
161 | |
|
162 | 0 | private static org.apache.axis.description.TypeDesc typeDesc = |
163 | |
new org.apache.axis.description.TypeDesc(RemoteVersion.class, true); |
164 | |
|
165 | |
static { |
166 | 0 | typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteVersion")); |
167 | 0 | org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); |
168 | 0 | elemField.setFieldName("archived"); |
169 | 0 | elemField.setXmlName(new javax.xml.namespace.QName("", "archived")); |
170 | 0 | elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean")); |
171 | 0 | elemField.setNillable(false); |
172 | 0 | typeDesc.addFieldDesc(elemField); |
173 | 0 | elemField = new org.apache.axis.description.ElementDesc(); |
174 | 0 | elemField.setFieldName("releaseDate"); |
175 | 0 | elemField.setXmlName(new javax.xml.namespace.QName("", "releaseDate")); |
176 | 0 | elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime")); |
177 | 0 | elemField.setNillable(true); |
178 | 0 | typeDesc.addFieldDesc(elemField); |
179 | 0 | elemField = new org.apache.axis.description.ElementDesc(); |
180 | 0 | elemField.setFieldName("released"); |
181 | 0 | elemField.setXmlName(new javax.xml.namespace.QName("", "released")); |
182 | 0 | elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean")); |
183 | 0 | elemField.setNillable(false); |
184 | 0 | typeDesc.addFieldDesc(elemField); |
185 | 0 | elemField = new org.apache.axis.description.ElementDesc(); |
186 | 0 | elemField.setFieldName("sequence"); |
187 | 0 | elemField.setXmlName(new javax.xml.namespace.QName("", "sequence")); |
188 | 0 | elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long")); |
189 | 0 | elemField.setNillable(true); |
190 | 0 | typeDesc.addFieldDesc(elemField); |
191 | 0 | } |
192 | |
|
193 | |
|
194 | |
|
195 | |
|
196 | |
public static org.apache.axis.description.TypeDesc getTypeDesc() { |
197 | 0 | return typeDesc; |
198 | |
} |
199 | |
|
200 | |
|
201 | |
|
202 | |
|
203 | |
public static org.apache.axis.encoding.Serializer getSerializer( |
204 | |
java.lang.String mechType, |
205 | |
java.lang.Class _javaType, |
206 | |
javax.xml.namespace.QName _xmlType) { |
207 | 0 | return |
208 | |
new org.apache.axis.encoding.ser.BeanSerializer( |
209 | |
_javaType, _xmlType, typeDesc); |
210 | |
} |
211 | |
|
212 | |
|
213 | |
|
214 | |
|
215 | |
public static org.apache.axis.encoding.Deserializer getDeserializer( |
216 | |
java.lang.String mechType, |
217 | |
java.lang.Class _javaType, |
218 | |
javax.xml.namespace.QName _xmlType) { |
219 | 0 | return |
220 | |
new org.apache.axis.encoding.ser.BeanDeserializer( |
221 | |
_javaType, _xmlType, typeDesc); |
222 | |
} |
223 | |
|
224 | |
} |