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