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