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