View Javadoc

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