1
2
3
4
5
6
7
8 package com.atlassian.theplugin.jira.api.soap.axis;
9
10 public class RemotePriority extends com.atlassian.theplugin.jira.api.soap.axis.AbstractRemoteConstant
11 implements java.io.Serializable {
12 private java.lang.String color;
13
14 public RemotePriority() {
15 }
16
17 public RemotePriority(
18 java.lang.String id,
19 java.lang.String name,
20 java.lang.String description,
21 java.lang.String icon,
22 java.lang.String color) {
23 super(
24 id,
25 name,
26 description,
27 icon);
28 this.color = color;
29 }
30
31
32
33
34
35
36
37 public java.lang.String getColor() {
38 return color;
39 }
40
41
42
43
44
45
46
47 public void setColor(java.lang.String color) {
48 this.color = color;
49 }
50
51 private java.lang.Object __equalsCalc = null;
52
53 public synchronized boolean equals(java.lang.Object obj) {
54 if (!(obj instanceof RemotePriority)) {
55 return false;
56 }
57 RemotePriority other = (RemotePriority) obj;
58 if (obj == null) {
59 return false;
60 }
61 if (this == obj) {
62 return true;
63 }
64 if (__equalsCalc != null) {
65 return (__equalsCalc == obj);
66 }
67 __equalsCalc = obj;
68 boolean _equals;
69 _equals = super.equals(obj) &&
70 ((this.color == null && other.getColor() == null) ||
71 (this.color != null &&
72 this.color.equals(other.getColor())));
73 __equalsCalc = null;
74 return _equals;
75 }
76
77 private boolean __hashCodeCalc = false;
78
79 public synchronized int hashCode() {
80 if (__hashCodeCalc) {
81 return 0;
82 }
83 __hashCodeCalc = true;
84 int _hashCode = super.hashCode();
85 if (getColor() != null) {
86 _hashCode += getColor().hashCode();
87 }
88 __hashCodeCalc = false;
89 return _hashCode;
90 }
91
92
93 private static org.apache.axis.description.TypeDesc typeDesc =
94 new org.apache.axis.description.TypeDesc(RemotePriority.class, true);
95
96 static {
97 typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemotePriority"));
98 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
99 elemField.setFieldName("color");
100 elemField.setXmlName(new javax.xml.namespace.QName("", "color"));
101 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
102 elemField.setNillable(true);
103 typeDesc.addFieldDesc(elemField);
104 }
105
106
107
108
109 public static org.apache.axis.description.TypeDesc getTypeDesc() {
110 return typeDesc;
111 }
112
113
114
115
116 public static org.apache.axis.encoding.Serializer getSerializer(
117 java.lang.String mechType,
118 java.lang.Class _javaType,
119 javax.xml.namespace.QName _xmlType) {
120 return
121 new org.apache.axis.encoding.ser.BeanSerializer(
122 _javaType, _xmlType, typeDesc);
123 }
124
125
126
127
128 public static org.apache.axis.encoding.Deserializer getDeserializer(
129 java.lang.String mechType,
130 java.lang.Class _javaType,
131 javax.xml.namespace.QName _xmlType) {
132 return
133 new org.apache.axis.encoding.ser.BeanDeserializer(
134 _javaType, _xmlType, typeDesc);
135 }
136
137 }