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