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