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 RemoteRoleActors implements java.io.Serializable {
27 private com.atlassian.theplugin.jira.api.soap.axis.RemoteProjectRole projectRole;
28
29 private com.atlassian.theplugin.jira.api.soap.axis.RemoteRoleActor[] roleActors;
30
31 private com.atlassian.theplugin.jira.api.soap.axis.RemoteUser[] users;
32
33 public RemoteRoleActors() {
34 }
35
36 public RemoteRoleActors(
37 com.atlassian.theplugin.jira.api.soap.axis.RemoteProjectRole projectRole,
38 com.atlassian.theplugin.jira.api.soap.axis.RemoteRoleActor[] roleActors,
39 com.atlassian.theplugin.jira.api.soap.axis.RemoteUser[] users) {
40 this.projectRole = projectRole;
41 this.roleActors = roleActors;
42 this.users = users;
43 }
44
45
46
47
48
49
50
51 public com.atlassian.theplugin.jira.api.soap.axis.RemoteProjectRole getProjectRole() {
52 return projectRole;
53 }
54
55
56
57
58
59
60
61 public void setProjectRole(com.atlassian.theplugin.jira.api.soap.axis.RemoteProjectRole projectRole) {
62 this.projectRole = projectRole;
63 }
64
65
66
67
68
69
70
71 public com.atlassian.theplugin.jira.api.soap.axis.RemoteRoleActor[] getRoleActors() {
72 return roleActors;
73 }
74
75
76
77
78
79
80
81 public void setRoleActors(com.atlassian.theplugin.jira.api.soap.axis.RemoteRoleActor[] roleActors) {
82 this.roleActors = roleActors;
83 }
84
85
86
87
88
89
90
91 public com.atlassian.theplugin.jira.api.soap.axis.RemoteUser[] getUsers() {
92 return users;
93 }
94
95
96
97
98
99
100
101 public void setUsers(com.atlassian.theplugin.jira.api.soap.axis.RemoteUser[] users) {
102 this.users = users;
103 }
104
105 private java.lang.Object __equalsCalc = null;
106 public synchronized boolean equals(java.lang.Object obj) {
107 if (!(obj instanceof RemoteRoleActors)) return false;
108 RemoteRoleActors other = (RemoteRoleActors) obj;
109 if (obj == null) return false;
110 if (this == obj) return true;
111 if (__equalsCalc != null) {
112 return (__equalsCalc == obj);
113 }
114 __equalsCalc = obj;
115 boolean _equals;
116 _equals = true &&
117 ((this.projectRole==null && other.getProjectRole()==null) ||
118 (this.projectRole!=null &&
119 this.projectRole.equals(other.getProjectRole()))) &&
120 ((this.roleActors==null && other.getRoleActors()==null) ||
121 (this.roleActors!=null &&
122 java.util.Arrays.equals(this.roleActors, other.getRoleActors()))) &&
123 ((this.users==null && other.getUsers()==null) ||
124 (this.users!=null &&
125 java.util.Arrays.equals(this.users, other.getUsers())));
126 __equalsCalc = null;
127 return _equals;
128 }
129
130 private boolean __hashCodeCalc = false;
131 public synchronized int hashCode() {
132 if (__hashCodeCalc) {
133 return 0;
134 }
135 __hashCodeCalc = true;
136 int _hashCode = 1;
137 if (getProjectRole() != null) {
138 _hashCode += getProjectRole().hashCode();
139 }
140 if (getRoleActors() != null) {
141 for (int i=0;
142 i<java.lang.reflect.Array.getLength(getRoleActors());
143 i++) {
144 java.lang.Object obj = java.lang.reflect.Array.get(getRoleActors(), i);
145 if (obj != null &&
146 !obj.getClass().isArray()) {
147 _hashCode += obj.hashCode();
148 }
149 }
150 }
151 if (getUsers() != null) {
152 for (int i=0;
153 i<java.lang.reflect.Array.getLength(getUsers());
154 i++) {
155 java.lang.Object obj = java.lang.reflect.Array.get(getUsers(), i);
156 if (obj != null &&
157 !obj.getClass().isArray()) {
158 _hashCode += obj.hashCode();
159 }
160 }
161 }
162 __hashCodeCalc = false;
163 return _hashCode;
164 }
165
166
167 private static org.apache.axis.description.TypeDesc typeDesc =
168 new org.apache.axis.description.TypeDesc(RemoteRoleActors.class, true);
169
170 static {
171 typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteRoleActors"));
172 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
173 elemField.setFieldName("projectRole");
174 elemField.setXmlName(new javax.xml.namespace.QName("", "projectRole"));
175 elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteProjectRole"));
176 elemField.setNillable(true);
177 typeDesc.addFieldDesc(elemField);
178 elemField = new org.apache.axis.description.ElementDesc();
179 elemField.setFieldName("roleActors");
180 elemField.setXmlName(new javax.xml.namespace.QName("", "roleActors"));
181 elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteRoleActor"));
182 elemField.setNillable(true);
183 typeDesc.addFieldDesc(elemField);
184 elemField = new org.apache.axis.description.ElementDesc();
185 elemField.setFieldName("users");
186 elemField.setXmlName(new javax.xml.namespace.QName("", "users"));
187 elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteUser"));
188 elemField.setNillable(true);
189 typeDesc.addFieldDesc(elemField);
190 }
191
192
193
194
195 public static org.apache.axis.description.TypeDesc getTypeDesc() {
196 return typeDesc;
197 }
198
199
200
201
202 public static org.apache.axis.encoding.Serializer getSerializer(
203 java.lang.String mechType,
204 java.lang.Class _javaType,
205 javax.xml.namespace.QName _xmlType) {
206 return
207 new org.apache.axis.encoding.ser.BeanSerializer(
208 _javaType, _xmlType, typeDesc);
209 }
210
211
212
213
214 public static org.apache.axis.encoding.Deserializer getDeserializer(
215 java.lang.String mechType,
216 java.lang.Class _javaType,
217 javax.xml.namespace.QName _xmlType) {
218 return
219 new org.apache.axis.encoding.ser.BeanDeserializer(
220 _javaType, _xmlType, typeDesc);
221 }
222
223 }