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