View Javadoc
1   /*
2    * Copyright (c) 2002-2017, Mairie de Paris
3    * All rights reserved.
4    *
5    * Redistribution and use in source and binary forms, with or without
6    * modification, are permitted provided that the following conditions
7    * are met:
8    *
9    *  1. Redistributions of source code must retain the above copyright notice
10   *     and the following disclaimer.
11   *
12   *  2. Redistributions in binary form must reproduce the above copyright notice
13   *     and the following disclaimer in the documentation and/or other materials
14   *     provided with the distribution.
15   *
16   *  3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
17   *     contributors may be used to endorse or promote products derived from
18   *     this software without specific prior written permission.
19   *
20   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23   * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
24   * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25   * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26   * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27   * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28   * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30   * POSSIBILITY OF SUCH DAMAGE.
31   *
32   * License 1.0
33   */
34  /**
35   * UserServiceResult.java
36   *
37   * This file was auto-generated from WSDL
38   * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
39   */
40  
41  package com.tvnavig.server.user.service.common;
42  
43  public class UserServiceResult  implements java.io.Serializable {
44      private java.lang.String email;
45  
46      private java.lang.String firstName;
47  
48      private java.lang.String lastName;
49  
50      private java.lang.String login;
51  
52      private java.lang.Integer userId;
53  
54      public UserServiceResult() {
55      }
56  
57      public UserServiceResult(
58             java.lang.String email,
59             java.lang.String firstName,
60             java.lang.String lastName,
61             java.lang.String login,
62             java.lang.Integer userId) {
63             this.email = email;
64             this.firstName = firstName;
65             this.lastName = lastName;
66             this.login = login;
67             this.userId = userId;
68      }
69  
70  
71      /**
72       * Gets the email value for this UserServiceResult.
73       * 
74       * @return email
75       */
76      public java.lang.String getEmail() {
77          return email;
78      }
79  
80  
81      /**
82       * Sets the email value for this UserServiceResult.
83       * 
84       * @param email
85       */
86      public void setEmail(java.lang.String email) {
87          this.email = email;
88      }
89  
90  
91      /**
92       * Gets the firstName value for this UserServiceResult.
93       * 
94       * @return firstName
95       */
96      public java.lang.String getFirstName() {
97          return firstName;
98      }
99  
100 
101     /**
102      * Sets the firstName value for this UserServiceResult.
103      * 
104      * @param firstName
105      */
106     public void setFirstName(java.lang.String firstName) {
107         this.firstName = firstName;
108     }
109 
110 
111     /**
112      * Gets the lastName value for this UserServiceResult.
113      * 
114      * @return lastName
115      */
116     public java.lang.String getLastName() {
117         return lastName;
118     }
119 
120 
121     /**
122      * Sets the lastName value for this UserServiceResult.
123      * 
124      * @param lastName
125      */
126     public void setLastName(java.lang.String lastName) {
127         this.lastName = lastName;
128     }
129 
130 
131     /**
132      * Gets the login value for this UserServiceResult.
133      * 
134      * @return login
135      */
136     public java.lang.String getLogin() {
137         return login;
138     }
139 
140 
141     /**
142      * Sets the login value for this UserServiceResult.
143      * 
144      * @param login
145      */
146     public void setLogin(java.lang.String login) {
147         this.login = login;
148     }
149 
150 
151     /**
152      * Gets the userId value for this UserServiceResult.
153      * 
154      * @return userId
155      */
156     public java.lang.Integer getUserId() {
157         return userId;
158     }
159 
160 
161     /**
162      * Sets the userId value for this UserServiceResult.
163      * 
164      * @param userId
165      */
166     public void setUserId(java.lang.Integer userId) {
167         this.userId = userId;
168     }
169 
170     private java.lang.Object __equalsCalc = null;
171     public synchronized boolean equals(java.lang.Object obj) {
172         if (!(obj instanceof UserServiceResult)) return false;
173         UserServiceResult other = (UserServiceResult) obj;
174         if (obj == null) return false;
175         if (this == obj) return true;
176         if (__equalsCalc != null) {
177             return (__equalsCalc == obj);
178         }
179         __equalsCalc = obj;
180         boolean _equals;
181         _equals = true && 
182             ((this.email==null && other.getEmail()==null) || 
183              (this.email!=null &&
184               this.email.equals(other.getEmail()))) &&
185             ((this.firstName==null && other.getFirstName()==null) || 
186              (this.firstName!=null &&
187               this.firstName.equals(other.getFirstName()))) &&
188             ((this.lastName==null && other.getLastName()==null) || 
189              (this.lastName!=null &&
190               this.lastName.equals(other.getLastName()))) &&
191             ((this.login==null && other.getLogin()==null) || 
192              (this.login!=null &&
193               this.login.equals(other.getLogin()))) &&
194             ((this.userId==null && other.getUserId()==null) || 
195              (this.userId!=null &&
196               this.userId.equals(other.getUserId())));
197         __equalsCalc = null;
198         return _equals;
199     }
200 
201     private boolean __hashCodeCalc = false;
202     public synchronized int hashCode() {
203         if (__hashCodeCalc) {
204             return 0;
205         }
206         __hashCodeCalc = true;
207         int _hashCode = 1;
208         if (getEmail() != null) {
209             _hashCode += getEmail().hashCode();
210         }
211         if (getFirstName() != null) {
212             _hashCode += getFirstName().hashCode();
213         }
214         if (getLastName() != null) {
215             _hashCode += getLastName().hashCode();
216         }
217         if (getLogin() != null) {
218             _hashCode += getLogin().hashCode();
219         }
220         if (getUserId() != null) {
221             _hashCode += getUserId().hashCode();
222         }
223         __hashCodeCalc = false;
224         return _hashCode;
225     }
226 
227     // Type metadata
228     private static org.apache.axis.description.TypeDesc typeDesc =
229         new org.apache.axis.description.TypeDesc(UserServiceResult.class, true);
230 
231     static {
232         typeDesc.setXmlType(new javax.xml.namespace.QName("http://common.service.user.server.tvnavig.com", "UserServiceResult"));
233         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
234         elemField.setFieldName("email");
235         elemField.setXmlName(new javax.xml.namespace.QName("", "email"));
236         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
237         elemField.setNillable(true);
238         typeDesc.addFieldDesc(elemField);
239         elemField = new org.apache.axis.description.ElementDesc();
240         elemField.setFieldName("firstName");
241         elemField.setXmlName(new javax.xml.namespace.QName("", "firstName"));
242         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
243         elemField.setNillable(true);
244         typeDesc.addFieldDesc(elemField);
245         elemField = new org.apache.axis.description.ElementDesc();
246         elemField.setFieldName("lastName");
247         elemField.setXmlName(new javax.xml.namespace.QName("", "lastName"));
248         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
249         elemField.setNillable(true);
250         typeDesc.addFieldDesc(elemField);
251         elemField = new org.apache.axis.description.ElementDesc();
252         elemField.setFieldName("login");
253         elemField.setXmlName(new javax.xml.namespace.QName("", "login"));
254         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
255         elemField.setNillable(true);
256         typeDesc.addFieldDesc(elemField);
257         elemField = new org.apache.axis.description.ElementDesc();
258         elemField.setFieldName("userId");
259         elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
260         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
261         elemField.setNillable(true);
262         typeDesc.addFieldDesc(elemField);
263     }
264 
265     /**
266      * Return type metadata object
267      */
268     public static org.apache.axis.description.TypeDesc getTypeDesc() {
269         return typeDesc;
270     }
271 
272     /**
273      * Get Custom Serializer
274      */
275     public static org.apache.axis.encoding.Serializer getSerializer(
276            java.lang.String mechType, 
277            java.lang.Class _javaType,  
278            javax.xml.namespace.QName _xmlType) {
279         return 
280           new  org.apache.axis.encoding.ser.BeanSerializer(
281             _javaType, _xmlType, typeDesc);
282     }
283 
284     /**
285      * Get Custom Deserializer
286      */
287     public static org.apache.axis.encoding.Deserializer getDeserializer(
288            java.lang.String mechType, 
289            java.lang.Class _javaType,  
290            javax.xml.namespace.QName _xmlType) {
291         return 
292           new  org.apache.axis.encoding.ser.BeanDeserializer(
293             _javaType, _xmlType, typeDesc);
294     }
295 
296 }