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   * RemoteProjectRoleActors.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 RemoteProjectRoleActors  extends com.atlassian.theplugin.jira.api.soap.axis.RemoteRoleActors  implements java.io.Serializable {
27      private com.atlassian.theplugin.jira.api.soap.axis.RemoteProject project;
28  
29      public RemoteProjectRoleActors() {
30      }
31  
32      public RemoteProjectRoleActors(
33             com.atlassian.theplugin.jira.api.soap.axis.RemoteProjectRole projectRole,
34             com.atlassian.theplugin.jira.api.soap.axis.RemoteRoleActor[] roleActors,
35             com.atlassian.theplugin.jira.api.soap.axis.RemoteUser[] users,
36             com.atlassian.theplugin.jira.api.soap.axis.RemoteProject project) {
37          super(
38              projectRole,
39              roleActors,
40              users);
41          this.project = project;
42      }
43  
44  
45      /**
46       * Gets the project value for this RemoteProjectRoleActors.
47       * 
48       * @return project
49       */
50      public com.atlassian.theplugin.jira.api.soap.axis.RemoteProject getProject() {
51          return project;
52      }
53  
54  
55      /**
56       * Sets the project value for this RemoteProjectRoleActors.
57       * 
58       * @param project
59       */
60      public void setProject(com.atlassian.theplugin.jira.api.soap.axis.RemoteProject project) {
61          this.project = project;
62      }
63  
64      private java.lang.Object __equalsCalc = null;
65      public synchronized boolean equals(java.lang.Object obj) {
66          if (!(obj instanceof RemoteProjectRoleActors)) return false;
67          RemoteProjectRoleActors other = (RemoteProjectRoleActors) obj;
68          if (obj == null) return false;
69          if (this == obj) return true;
70          if (__equalsCalc != null) {
71              return (__equalsCalc == obj);
72          }
73          __equalsCalc = obj;
74          boolean _equals;
75          _equals = super.equals(obj) && 
76              ((this.project==null && other.getProject()==null) || 
77               (this.project!=null &&
78                this.project.equals(other.getProject())));
79          __equalsCalc = null;
80          return _equals;
81      }
82  
83      private boolean __hashCodeCalc = false;
84      public synchronized int hashCode() {
85          if (__hashCodeCalc) {
86              return 0;
87          }
88          __hashCodeCalc = true;
89          int _hashCode = super.hashCode();
90          if (getProject() != null) {
91              _hashCode += getProject().hashCode();
92          }
93          __hashCodeCalc = false;
94          return _hashCode;
95      }
96  
97      // Type metadata
98      private static org.apache.axis.description.TypeDesc typeDesc =
99          new org.apache.axis.description.TypeDesc(RemoteProjectRoleActors.class, true);
100 
101     static {
102         typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteProjectRoleActors"));
103         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
104         elemField.setFieldName("project");
105         elemField.setXmlName(new javax.xml.namespace.QName("", "project"));
106         elemField.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteProject"));
107         elemField.setNillable(true);
108         typeDesc.addFieldDesc(elemField);
109     }
110 
111     /**
112      * Return type metadata object
113      */
114     public static org.apache.axis.description.TypeDesc getTypeDesc() {
115         return typeDesc;
116     }
117 
118     /**
119      * Get Custom Serializer
120      */
121     public static org.apache.axis.encoding.Serializer getSerializer(
122            java.lang.String mechType, 
123            java.lang.Class _javaType,  
124            javax.xml.namespace.QName _xmlType) {
125         return 
126           new  org.apache.axis.encoding.ser.BeanSerializer(
127             _javaType, _xmlType, typeDesc);
128     }
129 
130     /**
131      * Get Custom Deserializer
132      */
133     public static org.apache.axis.encoding.Deserializer getDeserializer(
134            java.lang.String mechType, 
135            java.lang.Class _javaType,  
136            javax.xml.namespace.QName _xmlType) {
137         return 
138           new  org.apache.axis.encoding.ser.BeanDeserializer(
139             _javaType, _xmlType, typeDesc);
140     }
141 
142 }