1
2
3
4
5
6
7
8 package com.atlassian.theplugin.jira.api.soap.axis;
9
10 public class RemoteRoleActor implements java.io.Serializable {
11 private java.lang.String descriptor;
12
13 private java.lang.String parameter;
14
15 private com.atlassian.theplugin.jira.api.soap.axis.RemoteProjectRole projectRole;
16
17 private java.lang.String type;
18
19 private com.atlassian.theplugin.jira.api.soap.axis.RemoteUser[] users;
20
21 public RemoteRoleActor() {
22 }
23
24 public RemoteRoleActor(
25 java.lang.String descriptor,
26 java.lang.String parameter,
27 com.atlassian.theplugin.jira.api.soap.axis.RemoteProjectRole projectRole,
28 java.lang.String type,
29 com.atlassian.theplugin.jira.api.soap.axis.RemoteUser[] users) {
30 this.descriptor = descriptor;
31 this.parameter = parameter;
32 this.projectRole = projectRole;
33 this.type = type;
34 this.users = users;
35 }
36
37
38
39
40
41
42
43 public java.lang.String getDescriptor() {
44 return descriptor;
45 }
46
47
48
49
50
51
52
53 public void setDescriptor(java.lang.String descriptor) {
54 this.descriptor = descriptor;
55 }
56
57
58
59
60
61
62
63 public java.lang.String getParameter() {
64 return parameter;
65 }
66
67
68
69
70
71
72
73 public void setParameter(java.lang.String parameter) {
74 this.parameter = parameter;
75 }
76
77
78
79
80
81
82
83 public com.atlassian.theplugin.jira.api.soap.axis.RemoteProjectRole getProjectRole() {
84 return projectRole;
85 }
86
87
88
89
90
91
92
93 public void setProjectRole(com.atlassian.theplugin.jira.api.soap.axis.RemoteProjectRole projectRole) {
94 this.projectRole = projectRole;
95 }
96
97
98
99
100
101
102
103 public java.lang.String getType() {
104 return type;
105 }
106
107
108
109
110
111
112
113 public void setType(java.lang.String type) {
114 this.type = type;
115 }
116
117
118
119
120
121
122
123 public com.atlassian.theplugin.jira.api.soap.axis.RemoteUser[] getUsers() {
124 return users;
125 }
126
127
128
129
130
131
132
133 public void setUsers(com.atlassian.theplugin.jira.api.soap.axis.RemoteUser[] users) {
134 this.users = users;
135 }
136
137 private java.lang.Object __equalsCalc = null;
138
139 public synchronized boolean equals(java.lang.Object obj) {
140 if (!(obj instanceof RemoteRoleActor)) {
141 return false;
142 }
143 RemoteRoleActor other = (RemoteRoleActor) obj;
144 if (obj == null) {
145 return false;
146 }
147 if (this == obj) {
148 return true;
149 }
150 if (__equalsCalc != null) {
151 return (__equalsCalc == obj);
152 }
153 __equalsCalc = obj;
154 boolean _equals;
155 _equals = true &&
156 ((this.descriptor == null && other.getDescriptor() == null) ||
157 (this.descriptor != null &&
158 this.descriptor.equals(other.getDescriptor()))) &&
159 ((this.parameter == null && other.getParameter() == null) ||
160 (this.parameter != null &&
161 this.parameter.equals(other.getParameter()))) &&
162 ((this.projectRole == null && other.getProjectRole() == null) ||
163 (this.projectRole != null &&
164 this.projectRole.equals(other.getProjectRole()))) &&
165 ((this.type == null && other.getType() == null) ||
166 (this.type != null &&
167 this.type.equals(other.getType()))) &&
168 ((this.users == null && other.getUsers() == null) ||
169 (this.users != null &&
170 java.util.Arrays.equals(this.users, other.getUsers())));
171 __equalsCalc = null;
172 return _equals;
173 }
174
175 private boolean __hashCodeCalc = false;
176
177 public synchronized int hashCode() {
178 if (__hashCodeCalc) {
179 return 0;
180 }
181 __hashCodeCalc = true;
182 int _hashCode = 1;
183 if (getDescriptor() != null) {
184 _hashCode += getDescriptor().hashCode();
185 }
186 if (getParameter() != null) {
187 _hashCode += getParameter().hashCode();
188 }
189 if (getProjectRole() != null) {
190 _hashCode += getProjectRole().hashCode();
191 }
192 if (getType() != null) {
193 _hashCode += getType().hashCode();
194 }
195 if (getUsers() != null) {
196 for (int i = 0;
197 i < java.lang.reflect.Array.getLength(getUsers());
198 i++) {
199 java.lang.Object obj = java.lang.reflect.Array.get(getUsers(), i);
200 if (obj != null &&
201 !obj.getClass().isArray()) {
202 _hashCode += obj.hashCode();
203 }
204 }
205 }
206 __hashCodeCalc = false;
207 return _hashCode;
208 }
209
210
211 private static org.apache.axis.description.TypeDesc typeDesc =
212 new org.apache.axis.description.TypeDesc(RemoteRoleActor.class, true);
213
214 static {
215 typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteRoleActor"));
216 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
217 elemField.setFieldName("descriptor");
218 elemField.setXmlName(new javax.xml.namespace.QName("", "descriptor"));
219 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
220 elemField.setNillable(true);
221 typeDesc.addFieldDesc(elemField);
222 elemField = new org.apache.axis.description.ElementDesc();
223 elemField.setFieldName("parameter");
224 elemField.setXmlName(new javax.xml.namespace.QName("", "parameter"));
225 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
226 elemField.setNillable(true);
227 typeDesc.addFieldDesc(elemField);
228 elemField = new org.apache.axis.description.ElementDesc();
229 elemField.setFieldName("projectRole");
230 elemField.setXmlName(new javax.xml.namespace.QName("", "projectRole"));
231 elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteProjectRole"));
232 elemField.setNillable(true);
233 typeDesc.addFieldDesc(elemField);
234 elemField = new org.apache.axis.description.ElementDesc();
235 elemField.setFieldName("type");
236 elemField.setXmlName(new javax.xml.namespace.QName("", "type"));
237 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
238 elemField.setNillable(true);
239 typeDesc.addFieldDesc(elemField);
240 elemField = new org.apache.axis.description.ElementDesc();
241 elemField.setFieldName("users");
242 elemField.setXmlName(new javax.xml.namespace.QName("", "users"));
243 elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteUser"));
244 elemField.setNillable(true);
245 typeDesc.addFieldDesc(elemField);
246 }
247
248
249
250
251 public static org.apache.axis.description.TypeDesc getTypeDesc() {
252 return typeDesc;
253 }
254
255
256
257
258 public static org.apache.axis.encoding.Serializer getSerializer(
259 java.lang.String mechType,
260 java.lang.Class _javaType,
261 javax.xml.namespace.QName _xmlType) {
262 return
263 new org.apache.axis.encoding.ser.BeanSerializer(
264 _javaType, _xmlType, typeDesc);
265 }
266
267
268
269
270 public static org.apache.axis.encoding.Deserializer getDeserializer(
271 java.lang.String mechType,
272 java.lang.Class _javaType,
273 javax.xml.namespace.QName _xmlType) {
274 return
275 new org.apache.axis.encoding.ser.BeanDeserializer(
276 _javaType, _xmlType, typeDesc);
277 }
278
279 }