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   * RemoteServerInfo.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 RemoteServerInfo  implements java.io.Serializable {
27      private java.lang.String baseUrl;
28  
29      private java.util.Calendar buildDate;
30  
31      private java.lang.String buildNumber;
32  
33      private java.lang.String edition;
34  
35      private java.lang.String version;
36  
37      public RemoteServerInfo() {
38      }
39  
40      public RemoteServerInfo(
41             java.lang.String baseUrl,
42             java.util.Calendar buildDate,
43             java.lang.String buildNumber,
44             java.lang.String edition,
45             java.lang.String version) {
46             this.baseUrl = baseUrl;
47             this.buildDate = buildDate;
48             this.buildNumber = buildNumber;
49             this.edition = edition;
50             this.version = version;
51      }
52  
53  
54      /**
55       * Gets the baseUrl value for this RemoteServerInfo.
56       * 
57       * @return baseUrl
58       */
59      public java.lang.String getBaseUrl() {
60          return baseUrl;
61      }
62  
63  
64      /**
65       * Sets the baseUrl value for this RemoteServerInfo.
66       * 
67       * @param baseUrl
68       */
69      public void setBaseUrl(java.lang.String baseUrl) {
70          this.baseUrl = baseUrl;
71      }
72  
73  
74      /**
75       * Gets the buildDate value for this RemoteServerInfo.
76       * 
77       * @return buildDate
78       */
79      public java.util.Calendar getBuildDate() {
80          return buildDate;
81      }
82  
83  
84      /**
85       * Sets the buildDate value for this RemoteServerInfo.
86       * 
87       * @param buildDate
88       */
89      public void setBuildDate(java.util.Calendar buildDate) {
90          this.buildDate = buildDate;
91      }
92  
93  
94      /**
95       * Gets the buildNumber value for this RemoteServerInfo.
96       * 
97       * @return buildNumber
98       */
99      public java.lang.String getBuildNumber() {
100         return buildNumber;
101     }
102 
103 
104     /**
105      * Sets the buildNumber value for this RemoteServerInfo.
106      * 
107      * @param buildNumber
108      */
109     public void setBuildNumber(java.lang.String buildNumber) {
110         this.buildNumber = buildNumber;
111     }
112 
113 
114     /**
115      * Gets the edition value for this RemoteServerInfo.
116      * 
117      * @return edition
118      */
119     public java.lang.String getEdition() {
120         return edition;
121     }
122 
123 
124     /**
125      * Sets the edition value for this RemoteServerInfo.
126      * 
127      * @param edition
128      */
129     public void setEdition(java.lang.String edition) {
130         this.edition = edition;
131     }
132 
133 
134     /**
135      * Gets the version value for this RemoteServerInfo.
136      * 
137      * @return version
138      */
139     public java.lang.String getVersion() {
140         return version;
141     }
142 
143 
144     /**
145      * Sets the version value for this RemoteServerInfo.
146      * 
147      * @param version
148      */
149     public void setVersion(java.lang.String version) {
150         this.version = version;
151     }
152 
153     private java.lang.Object __equalsCalc = null;
154     public synchronized boolean equals(java.lang.Object obj) {
155         if (!(obj instanceof RemoteServerInfo)) return false;
156         RemoteServerInfo other = (RemoteServerInfo) obj;
157         if (obj == null) return false;
158         if (this == obj) return true;
159         if (__equalsCalc != null) {
160             return (__equalsCalc == obj);
161         }
162         __equalsCalc = obj;
163         boolean _equals;
164         _equals = true && 
165             ((this.baseUrl==null && other.getBaseUrl()==null) || 
166              (this.baseUrl!=null &&
167               this.baseUrl.equals(other.getBaseUrl()))) &&
168             ((this.buildDate==null && other.getBuildDate()==null) || 
169              (this.buildDate!=null &&
170               this.buildDate.equals(other.getBuildDate()))) &&
171             ((this.buildNumber==null && other.getBuildNumber()==null) || 
172              (this.buildNumber!=null &&
173               this.buildNumber.equals(other.getBuildNumber()))) &&
174             ((this.edition==null && other.getEdition()==null) || 
175              (this.edition!=null &&
176               this.edition.equals(other.getEdition()))) &&
177             ((this.version==null && other.getVersion()==null) || 
178              (this.version!=null &&
179               this.version.equals(other.getVersion())));
180         __equalsCalc = null;
181         return _equals;
182     }
183 
184     private boolean __hashCodeCalc = false;
185     public synchronized int hashCode() {
186         if (__hashCodeCalc) {
187             return 0;
188         }
189         __hashCodeCalc = true;
190         int _hashCode = 1;
191         if (getBaseUrl() != null) {
192             _hashCode += getBaseUrl().hashCode();
193         }
194         if (getBuildDate() != null) {
195             _hashCode += getBuildDate().hashCode();
196         }
197         if (getBuildNumber() != null) {
198             _hashCode += getBuildNumber().hashCode();
199         }
200         if (getEdition() != null) {
201             _hashCode += getEdition().hashCode();
202         }
203         if (getVersion() != null) {
204             _hashCode += getVersion().hashCode();
205         }
206         __hashCodeCalc = false;
207         return _hashCode;
208     }
209 
210     // Type metadata
211     private static org.apache.axis.description.TypeDesc typeDesc =
212         new org.apache.axis.description.TypeDesc(RemoteServerInfo.class, true);
213 
214     static {
215         typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteServerInfo"));
216         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
217         elemField.setFieldName("baseUrl");
218         elemField.setXmlName(new javax.xml.namespace.QName("", "baseUrl"));
219         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
220         elemField.setNillable(true);
221         typeDesc.addFieldDesc(elemField);
222         elemField = new org.apache.axis.description.ElementDesc();
223         elemField.setFieldName("buildDate");
224         elemField.setXmlName(new javax.xml.namespace.QName("", "buildDate"));
225         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
226         elemField.setNillable(true);
227         typeDesc.addFieldDesc(elemField);
228         elemField = new org.apache.axis.description.ElementDesc();
229         elemField.setFieldName("buildNumber");
230         elemField.setXmlName(new javax.xml.namespace.QName("", "buildNumber"));
231         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
232         elemField.setNillable(true);
233         typeDesc.addFieldDesc(elemField);
234         elemField = new org.apache.axis.description.ElementDesc();
235         elemField.setFieldName("edition");
236         elemField.setXmlName(new javax.xml.namespace.QName("", "edition"));
237         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
238         elemField.setNillable(true);
239         typeDesc.addFieldDesc(elemField);
240         elemField = new org.apache.axis.description.ElementDesc();
241         elemField.setFieldName("version");
242         elemField.setXmlName(new javax.xml.namespace.QName("", "version"));
243         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
244         elemField.setNillable(true);
245         typeDesc.addFieldDesc(elemField);
246     }
247 
248     /**
249      * Return type metadata object
250      */
251     public static org.apache.axis.description.TypeDesc getTypeDesc() {
252         return typeDesc;
253     }
254 
255     /**
256      * Get Custom Serializer
257      */
258     public static org.apache.axis.encoding.Serializer getSerializer(
259            java.lang.String mechType, 
260            java.lang.Class _javaType,  
261            javax.xml.namespace.QName _xmlType) {
262         return 
263           new  org.apache.axis.encoding.ser.BeanSerializer(
264             _javaType, _xmlType, typeDesc);
265     }
266 
267     /**
268      * Get Custom Deserializer
269      */
270     public static org.apache.axis.encoding.Deserializer getDeserializer(
271            java.lang.String mechType, 
272            java.lang.Class _javaType,  
273            javax.xml.namespace.QName _xmlType) {
274         return 
275           new  org.apache.axis.encoding.ser.BeanDeserializer(
276             _javaType, _xmlType, typeDesc);
277     }
278 
279 }