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 RemoteGroup extends com.atlassian.theplugin.jira.api.soap.axis.RemoteEntity implements java.io.Serializable {
27 private java.lang.String name;
28
29 private com.atlassian.theplugin.jira.api.soap.axis.RemoteUser[] users;
30
31 public RemoteGroup() {
32 }
33
34 public RemoteGroup(
35 java.lang.String name,
36 com.atlassian.theplugin.jira.api.soap.axis.RemoteUser[] users) {
37 this.name = name;
38 this.users = users;
39 }
40
41
42
43
44
45
46
47 public java.lang.String getName() {
48 return name;
49 }
50
51
52
53
54
55
56
57 public void setName(java.lang.String name) {
58 this.name = name;
59 }
60
61
62
63
64
65
66
67 public com.atlassian.theplugin.jira.api.soap.axis.RemoteUser[] getUsers() {
68 return users;
69 }
70
71
72
73
74
75
76
77 public void setUsers(com.atlassian.theplugin.jira.api.soap.axis.RemoteUser[] users) {
78 this.users = users;
79 }
80
81 private java.lang.Object __equalsCalc = null;
82 public synchronized boolean equals(java.lang.Object obj) {
83 if (!(obj instanceof RemoteGroup)) return false;
84 RemoteGroup other = (RemoteGroup) obj;
85 if (obj == null) return false;
86 if (this == obj) return true;
87 if (__equalsCalc != null) {
88 return (__equalsCalc == obj);
89 }
90 __equalsCalc = obj;
91 boolean _equals;
92 _equals = super.equals(obj) &&
93 ((this.name==null && other.getName()==null) ||
94 (this.name!=null &&
95 this.name.equals(other.getName()))) &&
96 ((this.users==null && other.getUsers()==null) ||
97 (this.users!=null &&
98 java.util.Arrays.equals(this.users, other.getUsers())));
99 __equalsCalc = null;
100 return _equals;
101 }
102
103 private boolean __hashCodeCalc = false;
104 public synchronized int hashCode() {
105 if (__hashCodeCalc) {
106 return 0;
107 }
108 __hashCodeCalc = true;
109 int _hashCode = super.hashCode();
110 if (getName() != null) {
111 _hashCode += getName().hashCode();
112 }
113 if (getUsers() != null) {
114 for (int i=0;
115 i<java.lang.reflect.Array.getLength(getUsers());
116 i++) {
117 java.lang.Object obj = java.lang.reflect.Array.get(getUsers(), i);
118 if (obj != null &&
119 !obj.getClass().isArray()) {
120 _hashCode += obj.hashCode();
121 }
122 }
123 }
124 __hashCodeCalc = false;
125 return _hashCode;
126 }
127
128
129 private static org.apache.axis.description.TypeDesc typeDesc =
130 new org.apache.axis.description.TypeDesc(RemoteGroup.class, true);
131
132 static {
133 typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteGroup"));
134 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
135 elemField.setFieldName("name");
136 elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
137 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
138 elemField.setNillable(true);
139 typeDesc.addFieldDesc(elemField);
140 elemField = new org.apache.axis.description.ElementDesc();
141 elemField.setFieldName("users");
142 elemField.setXmlName(new javax.xml.namespace.QName("", "users"));
143 elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteUser"));
144 elemField.setNillable(true);
145 typeDesc.addFieldDesc(elemField);
146 }
147
148
149
150
151 public static org.apache.axis.description.TypeDesc getTypeDesc() {
152 return typeDesc;
153 }
154
155
156
157
158 public static org.apache.axis.encoding.Serializer getSerializer(
159 java.lang.String mechType,
160 java.lang.Class _javaType,
161 javax.xml.namespace.QName _xmlType) {
162 return
163 new org.apache.axis.encoding.ser.BeanSerializer(
164 _javaType, _xmlType, typeDesc);
165 }
166
167
168
169
170 public static org.apache.axis.encoding.Deserializer getDeserializer(
171 java.lang.String mechType,
172 java.lang.Class _javaType,
173 javax.xml.namespace.QName _xmlType) {
174 return
175 new org.apache.axis.encoding.ser.BeanDeserializer(
176 _javaType, _xmlType, typeDesc);
177 }
178
179 }