View Javadoc

1   /**
2    * RemoteFieldValue.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6    */
7   
8   package org.apache.maven.plugins.patchtracker.tracking.jira.soap;
9   
10  public class RemoteFieldValue  implements java.io.Serializable {
11      private java.lang.String id;
12  
13      private java.lang.String[] values;
14  
15      public RemoteFieldValue() {
16      }
17  
18      public RemoteFieldValue(
19             java.lang.String id,
20             java.lang.String[] values) {
21             this.id = id;
22             this.values = values;
23      }
24  
25  
26      /**
27       * Gets the id value for this RemoteFieldValue.
28       * 
29       * @return id
30       */
31      public java.lang.String getId() {
32          return id;
33      }
34  
35  
36      /**
37       * Sets the id value for this RemoteFieldValue.
38       * 
39       * @param id
40       */
41      public void setId(java.lang.String id) {
42          this.id = id;
43      }
44  
45  
46      /**
47       * Gets the values value for this RemoteFieldValue.
48       * 
49       * @return values
50       */
51      public java.lang.String[] getValues() {
52          return values;
53      }
54  
55  
56      /**
57       * Sets the values value for this RemoteFieldValue.
58       * 
59       * @param values
60       */
61      public void setValues(java.lang.String[] values) {
62          this.values = values;
63      }
64  
65      private java.lang.Object __equalsCalc = null;
66      public synchronized boolean equals(java.lang.Object obj) {
67          if (!(obj instanceof RemoteFieldValue)) return false;
68          RemoteFieldValue other = (RemoteFieldValue) obj;
69          if (obj == null) return false;
70          if (this == obj) return true;
71          if (__equalsCalc != null) {
72              return (__equalsCalc == obj);
73          }
74          __equalsCalc = obj;
75          boolean _equals;
76          _equals = true && 
77              ((this.id==null && other.getId()==null) || 
78               (this.id!=null &&
79                this.id.equals(other.getId()))) &&
80              ((this.values==null && other.getValues()==null) || 
81               (this.values!=null &&
82                java.util.Arrays.equals(this.values, other.getValues())));
83          __equalsCalc = null;
84          return _equals;
85      }
86  
87      private boolean __hashCodeCalc = false;
88      public synchronized int hashCode() {
89          if (__hashCodeCalc) {
90              return 0;
91          }
92          __hashCodeCalc = true;
93          int _hashCode = 1;
94          if (getId() != null) {
95              _hashCode += getId().hashCode();
96          }
97          if (getValues() != null) {
98              for (int i=0;
99                   i<java.lang.reflect.Array.getLength(getValues());
100                  i++) {
101                 java.lang.Object obj = java.lang.reflect.Array.get(getValues(), i);
102                 if (obj != null &&
103                     !obj.getClass().isArray()) {
104                     _hashCode += obj.hashCode();
105                 }
106             }
107         }
108         __hashCodeCalc = false;
109         return _hashCode;
110     }
111 
112     // Type metadata
113     private static org.apache.axis.description.TypeDesc typeDesc =
114         new org.apache.axis.description.TypeDesc(RemoteFieldValue.class, true);
115 
116     static {
117         typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteFieldValue"));
118         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
119         elemField.setFieldName("id");
120         elemField.setXmlName(new javax.xml.namespace.QName("", "id"));
121         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
122         elemField.setNillable(true);
123         typeDesc.addFieldDesc(elemField);
124         elemField = new org.apache.axis.description.ElementDesc();
125         elemField.setFieldName("values");
126         elemField.setXmlName(new javax.xml.namespace.QName("", "values"));
127         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
128         elemField.setNillable(true);
129         typeDesc.addFieldDesc(elemField);
130     }
131 
132     /**
133      * Return type metadata object
134      */
135     public static org.apache.axis.description.TypeDesc getTypeDesc() {
136         return typeDesc;
137     }
138 
139     /**
140      * Get Custom Serializer
141      */
142     public static org.apache.axis.encoding.Serializer getSerializer(
143            java.lang.String mechType, 
144            java.lang.Class _javaType,  
145            javax.xml.namespace.QName _xmlType) {
146         return 
147           new  org.apache.axis.encoding.ser.BeanSerializer(
148             _javaType, _xmlType, typeDesc);
149     }
150 
151     /**
152      * Get Custom Deserializer
153      */
154     public static org.apache.axis.encoding.Deserializer getDeserializer(
155            java.lang.String mechType, 
156            java.lang.Class _javaType,  
157            javax.xml.namespace.QName _xmlType) {
158         return 
159           new  org.apache.axis.encoding.ser.BeanDeserializer(
160             _javaType, _xmlType, typeDesc);
161     }
162 
163 }