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