View Javadoc

1   /**
2    * Copyright (C) 2008 Atlassian
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *    http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  /**
18   * RemoteGroup.java
19   *
20   * This file was auto-generated from WSDL
21   * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
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       * Gets the name value for this RemoteGroup.
44       * 
45       * @return name
46       */
47      public java.lang.String getName() {
48          return name;
49      }
50  
51  
52      /**
53       * Sets the name value for this RemoteGroup.
54       * 
55       * @param name
56       */
57      public void setName(java.lang.String name) {
58          this.name = name;
59      }
60  
61  
62      /**
63       * Gets the users value for this RemoteGroup.
64       * 
65       * @return users
66       */
67      public com.atlassian.theplugin.jira.api.soap.axis.RemoteUser[] getUsers() {
68          return users;
69      }
70  
71  
72      /**
73       * Sets the users value for this RemoteGroup.
74       * 
75       * @param users
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     // Type metadata
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      * Return type metadata object
150      */
151     public static org.apache.axis.description.TypeDesc getTypeDesc() {
152         return typeDesc;
153     }
154 
155     /**
156      * Get Custom Serializer
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      * Get Custom Deserializer
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 }