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