1
2
3
4
5
6
7
8 package org.apache.maven.plugins.patchtracker.tracking.jira.soap;
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 org.apache.maven.plugins.patchtracker.tracking.jira.soap.RemoteProjectRole projectRole;
16
17 private java.lang.String type;
18
19 private org.apache.maven.plugins.patchtracker.tracking.jira.soap.RemoteUser[] users;
20
21 public RemoteRoleActor() {
22 }
23
24 public RemoteRoleActor(
25 java.lang.String descriptor,
26 java.lang.String parameter,
27 org.apache.maven.plugins.patchtracker.tracking.jira.soap.RemoteProjectRole projectRole,
28 java.lang.String type,
29 org.apache.maven.plugins.patchtracker.tracking.jira.soap.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 org.apache.maven.plugins.patchtracker.tracking.jira.soap.RemoteProjectRole getProjectRole() {
84 return projectRole;
85 }
86
87
88
89
90
91
92
93 public void setProjectRole(org.apache.maven.plugins.patchtracker.tracking.jira.soap.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 org.apache.maven.plugins.patchtracker.tracking.jira.soap.RemoteUser[] getUsers() {
124 return users;
125 }
126
127
128
129
130
131
132
133 public void setUsers(org.apache.maven.plugins.patchtracker.tracking.jira.soap.RemoteUser[] users) {
134 this.users = users;
135 }
136
137 private java.lang.Object __equalsCalc = null;
138 public synchronized boolean equals(java.lang.Object obj) {
139 if (!(obj instanceof RemoteRoleActor)) return false;
140 RemoteRoleActor other = (RemoteRoleActor) obj;
141 if (obj == null) return false;
142 if (this == obj) return true;
143 if (__equalsCalc != null) {
144 return (__equalsCalc == obj);
145 }
146 __equalsCalc = obj;
147 boolean _equals;
148 _equals = true &&
149 ((this.descriptor==null && other.getDescriptor()==null) ||
150 (this.descriptor!=null &&
151 this.descriptor.equals(other.getDescriptor()))) &&
152 ((this.parameter==null && other.getParameter()==null) ||
153 (this.parameter!=null &&
154 this.parameter.equals(other.getParameter()))) &&
155 ((this.projectRole==null && other.getProjectRole()==null) ||
156 (this.projectRole!=null &&
157 this.projectRole.equals(other.getProjectRole()))) &&
158 ((this.type==null && other.getType()==null) ||
159 (this.type!=null &&
160 this.type.equals(other.getType()))) &&
161 ((this.users==null && other.getUsers()==null) ||
162 (this.users!=null &&
163 java.util.Arrays.equals(this.users, other.getUsers())));
164 __equalsCalc = null;
165 return _equals;
166 }
167
168 private boolean __hashCodeCalc = false;
169 public synchronized int hashCode() {
170 if (__hashCodeCalc) {
171 return 0;
172 }
173 __hashCodeCalc = true;
174 int _hashCode = 1;
175 if (getDescriptor() != null) {
176 _hashCode += getDescriptor().hashCode();
177 }
178 if (getParameter() != null) {
179 _hashCode += getParameter().hashCode();
180 }
181 if (getProjectRole() != null) {
182 _hashCode += getProjectRole().hashCode();
183 }
184 if (getType() != null) {
185 _hashCode += getType().hashCode();
186 }
187 if (getUsers() != null) {
188 for (int i=0;
189 i<java.lang.reflect.Array.getLength(getUsers());
190 i++) {
191 java.lang.Object obj = java.lang.reflect.Array.get(getUsers(), i);
192 if (obj != null &&
193 !obj.getClass().isArray()) {
194 _hashCode += obj.hashCode();
195 }
196 }
197 }
198 __hashCodeCalc = false;
199 return _hashCode;
200 }
201
202
203 private static org.apache.axis.description.TypeDesc typeDesc =
204 new org.apache.axis.description.TypeDesc(RemoteRoleActor.class, true);
205
206 static {
207 typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteRoleActor"));
208 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
209 elemField.setFieldName("descriptor");
210 elemField.setXmlName(new javax.xml.namespace.QName("", "descriptor"));
211 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
212 elemField.setNillable(true);
213 typeDesc.addFieldDesc(elemField);
214 elemField = new org.apache.axis.description.ElementDesc();
215 elemField.setFieldName("parameter");
216 elemField.setXmlName(new javax.xml.namespace.QName("", "parameter"));
217 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
218 elemField.setNillable(true);
219 typeDesc.addFieldDesc(elemField);
220 elemField = new org.apache.axis.description.ElementDesc();
221 elemField.setFieldName("projectRole");
222 elemField.setXmlName(new javax.xml.namespace.QName("", "projectRole"));
223 elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteProjectRole"));
224 elemField.setNillable(true);
225 typeDesc.addFieldDesc(elemField);
226 elemField = new org.apache.axis.description.ElementDesc();
227 elemField.setFieldName("type");
228 elemField.setXmlName(new javax.xml.namespace.QName("", "type"));
229 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
230 elemField.setNillable(true);
231 typeDesc.addFieldDesc(elemField);
232 elemField = new org.apache.axis.description.ElementDesc();
233 elemField.setFieldName("users");
234 elemField.setXmlName(new javax.xml.namespace.QName("", "users"));
235 elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteUser"));
236 elemField.setNillable(true);
237 typeDesc.addFieldDesc(elemField);
238 }
239
240
241
242
243 public static org.apache.axis.description.TypeDesc getTypeDesc() {
244 return typeDesc;
245 }
246
247
248
249
250 public static org.apache.axis.encoding.Serializer getSerializer(
251 java.lang.String mechType,
252 java.lang.Class _javaType,
253 javax.xml.namespace.QName _xmlType) {
254 return
255 new org.apache.axis.encoding.ser.BeanSerializer(
256 _javaType, _xmlType, typeDesc);
257 }
258
259
260
261
262 public static org.apache.axis.encoding.Deserializer getDeserializer(
263 java.lang.String mechType,
264 java.lang.Class _javaType,
265 javax.xml.namespace.QName _xmlType) {
266 return
267 new org.apache.axis.encoding.ser.BeanDeserializer(
268 _javaType, _xmlType, typeDesc);
269 }
270
271 }