1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
package org.apache.maven.plugins.patchtracker.tracking.jira.soap; |
9 | |
|
10 | |
public class RemoteCustomFieldValue implements java.io.Serializable { |
11 | |
private java.lang.String customfieldId; |
12 | |
|
13 | |
private java.lang.String key; |
14 | |
|
15 | |
private java.lang.String[] values; |
16 | |
|
17 | 0 | public RemoteCustomFieldValue() { |
18 | 0 | } |
19 | |
|
20 | |
public RemoteCustomFieldValue( |
21 | |
java.lang.String customfieldId, |
22 | |
java.lang.String key, |
23 | 0 | java.lang.String[] values) { |
24 | 0 | this.customfieldId = customfieldId; |
25 | 0 | this.key = key; |
26 | 0 | this.values = values; |
27 | 0 | } |
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
public java.lang.String getCustomfieldId() { |
36 | 0 | return customfieldId; |
37 | |
} |
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
|
43 | |
|
44 | |
|
45 | |
public void setCustomfieldId(java.lang.String customfieldId) { |
46 | 0 | this.customfieldId = customfieldId; |
47 | 0 | } |
48 | |
|
49 | |
|
50 | |
|
51 | |
|
52 | |
|
53 | |
|
54 | |
|
55 | |
public java.lang.String getKey() { |
56 | 0 | return key; |
57 | |
} |
58 | |
|
59 | |
|
60 | |
|
61 | |
|
62 | |
|
63 | |
|
64 | |
|
65 | |
public void setKey(java.lang.String key) { |
66 | 0 | this.key = key; |
67 | 0 | } |
68 | |
|
69 | |
|
70 | |
|
71 | |
|
72 | |
|
73 | |
|
74 | |
|
75 | |
public java.lang.String[] getValues() { |
76 | 0 | return values; |
77 | |
} |
78 | |
|
79 | |
|
80 | |
|
81 | |
|
82 | |
|
83 | |
|
84 | |
|
85 | |
public void setValues(java.lang.String[] values) { |
86 | 0 | this.values = values; |
87 | 0 | } |
88 | |
|
89 | 0 | private java.lang.Object __equalsCalc = null; |
90 | |
public synchronized boolean equals(java.lang.Object obj) { |
91 | 0 | if (!(obj instanceof RemoteCustomFieldValue)) return false; |
92 | 0 | RemoteCustomFieldValue other = (RemoteCustomFieldValue) obj; |
93 | 0 | if (obj == null) return false; |
94 | 0 | if (this == obj) return true; |
95 | 0 | if (__equalsCalc != null) { |
96 | 0 | return (__equalsCalc == obj); |
97 | |
} |
98 | 0 | __equalsCalc = obj; |
99 | |
boolean _equals; |
100 | 0 | _equals = true && |
101 | |
((this.customfieldId==null && other.getCustomfieldId()==null) || |
102 | |
(this.customfieldId!=null && |
103 | |
this.customfieldId.equals(other.getCustomfieldId()))) && |
104 | |
((this.key==null && other.getKey()==null) || |
105 | |
(this.key!=null && |
106 | |
this.key.equals(other.getKey()))) && |
107 | |
((this.values==null && other.getValues()==null) || |
108 | |
(this.values!=null && |
109 | |
java.util.Arrays.equals(this.values, other.getValues()))); |
110 | 0 | __equalsCalc = null; |
111 | 0 | return _equals; |
112 | |
} |
113 | |
|
114 | 0 | private boolean __hashCodeCalc = false; |
115 | |
public synchronized int hashCode() { |
116 | 0 | if (__hashCodeCalc) { |
117 | 0 | return 0; |
118 | |
} |
119 | 0 | __hashCodeCalc = true; |
120 | 0 | int _hashCode = 1; |
121 | 0 | if (getCustomfieldId() != null) { |
122 | 0 | _hashCode += getCustomfieldId().hashCode(); |
123 | |
} |
124 | 0 | if (getKey() != null) { |
125 | 0 | _hashCode += getKey().hashCode(); |
126 | |
} |
127 | 0 | if (getValues() != null) { |
128 | 0 | for (int i=0; |
129 | 0 | i<java.lang.reflect.Array.getLength(getValues()); |
130 | 0 | i++) { |
131 | 0 | java.lang.Object obj = java.lang.reflect.Array.get(getValues(), i); |
132 | 0 | if (obj != null && |
133 | |
!obj.getClass().isArray()) { |
134 | 0 | _hashCode += obj.hashCode(); |
135 | |
} |
136 | |
} |
137 | |
} |
138 | 0 | __hashCodeCalc = false; |
139 | 0 | return _hashCode; |
140 | |
} |
141 | |
|
142 | |
|
143 | 0 | private static org.apache.axis.description.TypeDesc typeDesc = |
144 | |
new org.apache.axis.description.TypeDesc(RemoteCustomFieldValue.class, true); |
145 | |
|
146 | |
static { |
147 | 0 | typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteCustomFieldValue")); |
148 | 0 | org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); |
149 | 0 | elemField.setFieldName("customfieldId"); |
150 | 0 | elemField.setXmlName(new javax.xml.namespace.QName("", "customfieldId")); |
151 | 0 | elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
152 | 0 | elemField.setNillable(true); |
153 | 0 | typeDesc.addFieldDesc(elemField); |
154 | 0 | elemField = new org.apache.axis.description.ElementDesc(); |
155 | 0 | elemField.setFieldName("key"); |
156 | 0 | elemField.setXmlName(new javax.xml.namespace.QName("", "key")); |
157 | 0 | elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
158 | 0 | elemField.setNillable(true); |
159 | 0 | typeDesc.addFieldDesc(elemField); |
160 | 0 | elemField = new org.apache.axis.description.ElementDesc(); |
161 | 0 | elemField.setFieldName("values"); |
162 | 0 | elemField.setXmlName(new javax.xml.namespace.QName("", "values")); |
163 | 0 | elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
164 | 0 | elemField.setNillable(true); |
165 | 0 | typeDesc.addFieldDesc(elemField); |
166 | 0 | } |
167 | |
|
168 | |
|
169 | |
|
170 | |
|
171 | |
public static org.apache.axis.description.TypeDesc getTypeDesc() { |
172 | 0 | return typeDesc; |
173 | |
} |
174 | |
|
175 | |
|
176 | |
|
177 | |
|
178 | |
public static org.apache.axis.encoding.Serializer getSerializer( |
179 | |
java.lang.String mechType, |
180 | |
java.lang.Class _javaType, |
181 | |
javax.xml.namespace.QName _xmlType) { |
182 | 0 | return |
183 | |
new org.apache.axis.encoding.ser.BeanSerializer( |
184 | |
_javaType, _xmlType, typeDesc); |
185 | |
} |
186 | |
|
187 | |
|
188 | |
|
189 | |
|
190 | |
public static org.apache.axis.encoding.Deserializer getDeserializer( |
191 | |
java.lang.String mechType, |
192 | |
java.lang.Class _javaType, |
193 | |
javax.xml.namespace.QName _xmlType) { |
194 | 0 | return |
195 | |
new org.apache.axis.encoding.ser.BeanDeserializer( |
196 | |
_javaType, _xmlType, typeDesc); |
197 | |
} |
198 | |
|
199 | |
} |