View Javadoc

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