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   * RemoteUser.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 RemoteUser  extends com.atlassian.theplugin.jira.api.soap.axis.RemoteEntity  implements java.io.Serializable {
27      private java.lang.String email;
28  
29      private java.lang.String fullname;
30  
31      private java.lang.String name;
32  
33      public RemoteUser() {
34      }
35  
36      public RemoteUser(
37             java.lang.String email,
38             java.lang.String fullname,
39             java.lang.String name) {
40          this.email = email;
41          this.fullname = fullname;
42          this.name = name;
43      }
44  
45  
46      /**
47       * Gets the email value for this RemoteUser.
48       * 
49       * @return email
50       */
51      public java.lang.String getEmail() {
52          return email;
53      }
54  
55  
56      /**
57       * Sets the email value for this RemoteUser.
58       * 
59       * @param email
60       */
61      public void setEmail(java.lang.String email) {
62          this.email = email;
63      }
64  
65  
66      /**
67       * Gets the fullname value for this RemoteUser.
68       * 
69       * @return fullname
70       */
71      public java.lang.String getFullname() {
72          return fullname;
73      }
74  
75  
76      /**
77       * Sets the fullname value for this RemoteUser.
78       * 
79       * @param fullname
80       */
81      public void setFullname(java.lang.String fullname) {
82          this.fullname = fullname;
83      }
84  
85  
86      /**
87       * Gets the name value for this RemoteUser.
88       * 
89       * @return name
90       */
91      public java.lang.String getName() {
92          return name;
93      }
94  
95  
96      /**
97       * Sets the name value for this RemoteUser.
98       * 
99       * @param name
100      */
101     public void setName(java.lang.String name) {
102         this.name = name;
103     }
104 
105     private java.lang.Object __equalsCalc = null;
106     public synchronized boolean equals(java.lang.Object obj) {
107         if (!(obj instanceof RemoteUser)) return false;
108         RemoteUser other = (RemoteUser) obj;
109         if (obj == null) return false;
110         if (this == obj) return true;
111         if (__equalsCalc != null) {
112             return (__equalsCalc == obj);
113         }
114         __equalsCalc = obj;
115         boolean _equals;
116         _equals = super.equals(obj) && 
117             ((this.email==null && other.getEmail()==null) || 
118              (this.email!=null &&
119               this.email.equals(other.getEmail()))) &&
120             ((this.fullname==null && other.getFullname()==null) || 
121              (this.fullname!=null &&
122               this.fullname.equals(other.getFullname()))) &&
123             ((this.name==null && other.getName()==null) || 
124              (this.name!=null &&
125               this.name.equals(other.getName())));
126         __equalsCalc = null;
127         return _equals;
128     }
129 
130     private boolean __hashCodeCalc = false;
131     public synchronized int hashCode() {
132         if (__hashCodeCalc) {
133             return 0;
134         }
135         __hashCodeCalc = true;
136         int _hashCode = super.hashCode();
137         if (getEmail() != null) {
138             _hashCode += getEmail().hashCode();
139         }
140         if (getFullname() != null) {
141             _hashCode += getFullname().hashCode();
142         }
143         if (getName() != null) {
144             _hashCode += getName().hashCode();
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(RemoteUser.class, true);
153 
154     static {
155         typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteUser"));
156         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
157         elemField.setFieldName("email");
158         elemField.setXmlName(new javax.xml.namespace.QName("", "email"));
159         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
160         elemField.setNillable(true);
161         typeDesc.addFieldDesc(elemField);
162         elemField = new org.apache.axis.description.ElementDesc();
163         elemField.setFieldName("fullname");
164         elemField.setXmlName(new javax.xml.namespace.QName("", "fullname"));
165         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
166         elemField.setNillable(true);
167         typeDesc.addFieldDesc(elemField);
168         elemField = new org.apache.axis.description.ElementDesc();
169         elemField.setFieldName("name");
170         elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
171         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
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 }