View Javadoc

1   /**
2    * RemoteProjectRole.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 RemoteProjectRole  implements java.io.Serializable {
11      private java.lang.String description;
12  
13      private java.lang.Long id;
14  
15      private java.lang.String name;
16  
17      public RemoteProjectRole() {
18      }
19  
20      public RemoteProjectRole(
21             java.lang.String description,
22             java.lang.Long id,
23             java.lang.String name) {
24             this.description = description;
25             this.id = id;
26             this.name = name;
27      }
28  
29  
30      /**
31       * Gets the description value for this RemoteProjectRole.
32       * 
33       * @return description
34       */
35      public java.lang.String getDescription() {
36          return description;
37      }
38  
39  
40      /**
41       * Sets the description value for this RemoteProjectRole.
42       * 
43       * @param description
44       */
45      public void setDescription(java.lang.String description) {
46          this.description = description;
47      }
48  
49  
50      /**
51       * Gets the id value for this RemoteProjectRole.
52       * 
53       * @return id
54       */
55      public java.lang.Long getId() {
56          return id;
57      }
58  
59  
60      /**
61       * Sets the id value for this RemoteProjectRole.
62       * 
63       * @param id
64       */
65      public void setId(java.lang.Long id) {
66          this.id = id;
67      }
68  
69  
70      /**
71       * Gets the name value for this RemoteProjectRole.
72       * 
73       * @return name
74       */
75      public java.lang.String getName() {
76          return name;
77      }
78  
79  
80      /**
81       * Sets the name value for this RemoteProjectRole.
82       * 
83       * @param name
84       */
85      public void setName(java.lang.String name) {
86          this.name = name;
87      }
88  
89      private java.lang.Object __equalsCalc = null;
90      public synchronized boolean equals(java.lang.Object obj) {
91          if (!(obj instanceof RemoteProjectRole)) return false;
92          RemoteProjectRole other = (RemoteProjectRole) 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.description==null && other.getDescription()==null) || 
102              (this.description!=null &&
103               this.description.equals(other.getDescription()))) &&
104             ((this.id==null && other.getId()==null) || 
105              (this.id!=null &&
106               this.id.equals(other.getId()))) &&
107             ((this.name==null && other.getName()==null) || 
108              (this.name!=null &&
109               this.name.equals(other.getName())));
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 (getDescription() != null) {
122             _hashCode += getDescription().hashCode();
123         }
124         if (getId() != null) {
125             _hashCode += getId().hashCode();
126         }
127         if (getName() != null) {
128             _hashCode += getName().hashCode();
129         }
130         __hashCodeCalc = false;
131         return _hashCode;
132     }
133 
134     // Type metadata
135     private static org.apache.axis.description.TypeDesc typeDesc =
136         new org.apache.axis.description.TypeDesc(RemoteProjectRole.class, true);
137 
138     static {
139         typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteProjectRole"));
140         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
141         elemField.setFieldName("description");
142         elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
143         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
144         elemField.setNillable(true);
145         typeDesc.addFieldDesc(elemField);
146         elemField = new org.apache.axis.description.ElementDesc();
147         elemField.setFieldName("id");
148         elemField.setXmlName(new javax.xml.namespace.QName("", "id"));
149         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
150         elemField.setNillable(true);
151         typeDesc.addFieldDesc(elemField);
152         elemField = new org.apache.axis.description.ElementDesc();
153         elemField.setFieldName("name");
154         elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
155         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
156         elemField.setNillable(true);
157         typeDesc.addFieldDesc(elemField);
158     }
159 
160     /**
161      * Return type metadata object
162      */
163     public static org.apache.axis.description.TypeDesc getTypeDesc() {
164         return typeDesc;
165     }
166 
167     /**
168      * Get Custom Serializer
169      */
170     public static org.apache.axis.encoding.Serializer getSerializer(
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.BeanSerializer(
176             _javaType, _xmlType, typeDesc);
177     }
178 
179     /**
180      * Get Custom Deserializer
181      */
182     public static org.apache.axis.encoding.Deserializer getDeserializer(
183            java.lang.String mechType, 
184            java.lang.Class _javaType,  
185            javax.xml.namespace.QName _xmlType) {
186         return 
187           new  org.apache.axis.encoding.ser.BeanDeserializer(
188             _javaType, _xmlType, typeDesc);
189     }
190 
191 }