View Javadoc

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