KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > bluecubs > xinco > core > XincoCoreUser


1 /**
2  * XincoCoreUser.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis WSDL2Java emitter.
6  */

7
8 /**
9  *Copyright 2004 blueCubs.com
10  *
11  *Licensed under the Apache License, Version 2.0 (the "License");
12  *you may not use this file except in compliance with the License.
13  *You may obtain a copy of the License at
14  *
15  * http://www.apache.org/licenses/LICENSE-2.0
16  *
17  *Unless required by applicable law or agreed to in writing, software
18  *distributed under the License is distributed on an "AS IS" BASIS,
19  *WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20  *See the License for the specific language governing permissions and
21  *limitations under the License.
22  *
23  *************************************************************
24  * This project supports the blueCubs vision of giving back
25  * to the community in exchange for free software!
26  * More information on: http://www.bluecubs.org
27  *************************************************************
28  *
29  * Name: XincoCoreUser
30  *
31  * Description: user
32  *
33  * Original Author: Alexander Manes
34  * Date: 2004
35  *
36  * Modifications:
37  *
38  * Who? When? What?
39  * - - -
40  *
41  *************************************************************
42  */

43
44 package com.bluecubs.xinco.core;
45
46 public class XincoCoreUser implements java.io.Serializable JavaDoc {
47     private java.lang.String JavaDoc email;
48     private java.util.Vector JavaDoc xinco_core_groups;
49     private java.lang.String JavaDoc firstname;
50     private int id;
51     private java.lang.String JavaDoc name;
52     private int status_number;
53     private java.lang.String JavaDoc username;
54     private java.lang.String JavaDoc userpassword;
55
56     public XincoCoreUser() {
57     }
58
59     public java.lang.String JavaDoc getEmail() {
60         return email;
61     }
62
63     public void setEmail(java.lang.String JavaDoc email) {
64         this.email = email;
65     }
66
67     public java.util.Vector JavaDoc getXinco_core_groups() {
68         return xinco_core_groups;
69     }
70
71     public void setXinco_core_groups(java.util.Vector JavaDoc xinco_core_groups) {
72         this.xinco_core_groups = xinco_core_groups;
73     }
74
75     public java.lang.String JavaDoc getFirstname() {
76         return firstname;
77     }
78
79     public void setFirstname(java.lang.String JavaDoc firstname) {
80         this.firstname = firstname;
81     }
82
83     public int getId() {
84         return id;
85     }
86
87     public void setId(int id) {
88         this.id = id;
89     }
90
91     public java.lang.String JavaDoc getName() {
92         return name;
93     }
94
95     public void setName(java.lang.String JavaDoc name) {
96         this.name = name;
97     }
98
99     public int getStatus_number() {
100         return status_number;
101     }
102
103     public void setStatus_number(int status_number) {
104         this.status_number = status_number;
105     }
106
107     public java.lang.String JavaDoc getUsername() {
108         return username;
109     }
110
111     public void setUsername(java.lang.String JavaDoc username) {
112         this.username = username;
113     }
114
115     public java.lang.String JavaDoc getUserpassword() {
116         return userpassword;
117     }
118
119     public void setUserpassword(java.lang.String JavaDoc userpassword) {
120         this.userpassword = userpassword;
121     }
122
123     private java.lang.Object JavaDoc __equalsCalc = null;
124     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
125         if (!(obj instanceof XincoCoreUser)) return false;
126         XincoCoreUser other = (XincoCoreUser) obj;
127         if (obj == null) return false;
128         if (this == obj) return true;
129         if (__equalsCalc != null) {
130             return (__equalsCalc == obj);
131         }
132         __equalsCalc = obj;
133         boolean _equals;
134         _equals = true &&
135             ((this.email==null && other.getEmail()==null) ||
136              (this.email!=null &&
137               this.email.equals(other.getEmail()))) &&
138             ((this.xinco_core_groups==null && other.getXinco_core_groups()==null) ||
139              (this.xinco_core_groups!=null &&
140               this.xinco_core_groups.equals(other.getXinco_core_groups()))) &&
141             ((this.firstname==null && other.getFirstname()==null) ||
142              (this.firstname!=null &&
143               this.firstname.equals(other.getFirstname()))) &&
144             this.id == other.getId() &&
145             ((this.name==null && other.getName()==null) ||
146              (this.name!=null &&
147               this.name.equals(other.getName()))) &&
148             this.status_number == other.getStatus_number() &&
149             ((this.username==null && other.getUsername()==null) ||
150              (this.username!=null &&
151               this.username.equals(other.getUsername()))) &&
152             ((this.userpassword==null && other.getUserpassword()==null) ||
153              (this.userpassword!=null &&
154               this.userpassword.equals(other.getUserpassword())));
155         __equalsCalc = null;
156         return _equals;
157     }
158
159     private boolean __hashCodeCalc = false;
160     public synchronized int hashCode() {
161         if (__hashCodeCalc) {
162             return 0;
163         }
164         __hashCodeCalc = true;
165         int _hashCode = 1;
166         if (getEmail() != null) {
167             _hashCode += getEmail().hashCode();
168         }
169         if (getXinco_core_groups() != null) {
170             _hashCode += getXinco_core_groups().hashCode();
171         }
172         if (getFirstname() != null) {
173             _hashCode += getFirstname().hashCode();
174         }
175         _hashCode += getId();
176         if (getName() != null) {
177             _hashCode += getName().hashCode();
178         }
179         _hashCode += getStatus_number();
180         if (getUsername() != null) {
181             _hashCode += getUsername().hashCode();
182         }
183         if (getUserpassword() != null) {
184             _hashCode += getUserpassword().hashCode();
185         }
186         __hashCodeCalc = false;
187         return _hashCode;
188     }
189
190     // Type metadata
191
private static org.apache.axis.description.TypeDesc typeDesc =
192         new org.apache.axis.description.TypeDesc(XincoCoreUser.class);
193
194     static {
195         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://core.xinco.bluecubs.com", "XincoCoreUser"));
196         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
197         elemField.setFieldName("email");
198         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "email"));
199         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
200         typeDesc.addFieldDesc(elemField);
201         elemField = new org.apache.axis.description.ElementDesc();
202         elemField.setFieldName("xinco_core_groups");
203         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "xinco_core_groups"));
204         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://xml.apache.org/xml-soap", "Vector"));
205         typeDesc.addFieldDesc(elemField);
206         elemField = new org.apache.axis.description.ElementDesc();
207         elemField.setFieldName("firstname");
208         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "firstname"));
209         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
210         typeDesc.addFieldDesc(elemField);
211         elemField = new org.apache.axis.description.ElementDesc();
212         elemField.setFieldName("id");
213         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "id"));
214         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
215         typeDesc.addFieldDesc(elemField);
216         elemField = new org.apache.axis.description.ElementDesc();
217         elemField.setFieldName("name");
218         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "name"));
219         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
220         typeDesc.addFieldDesc(elemField);
221         elemField = new org.apache.axis.description.ElementDesc();
222         elemField.setFieldName("status_number");
223         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "status_number"));
224         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
225         typeDesc.addFieldDesc(elemField);
226         elemField = new org.apache.axis.description.ElementDesc();
227         elemField.setFieldName("username");
228         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "username"));
229         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
230         typeDesc.addFieldDesc(elemField);
231         elemField = new org.apache.axis.description.ElementDesc();
232         elemField.setFieldName("userpassword");
233         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "userpassword"));
234         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
235         typeDesc.addFieldDesc(elemField);
236     }
237
238     /**
239      * Return type metadata object
240      */

241     public static org.apache.axis.description.TypeDesc getTypeDesc() {
242         return typeDesc;
243     }
244
245     /**
246      * Get Custom Serializer
247      */

248     public static org.apache.axis.encoding.Serializer getSerializer(
249            java.lang.String JavaDoc mechType,
250            java.lang.Class JavaDoc _javaType,
251            javax.xml.namespace.QName JavaDoc _xmlType) {
252         return
253           new org.apache.axis.encoding.ser.BeanSerializer(
254             _javaType, _xmlType, typeDesc);
255     }
256
257     /**
258      * Get Custom Deserializer
259      */

260     public static org.apache.axis.encoding.Deserializer getDeserializer(
261            java.lang.String JavaDoc mechType,
262            java.lang.Class JavaDoc _javaType,
263            javax.xml.namespace.QName JavaDoc _xmlType) {
264         return
265           new org.apache.axis.encoding.ser.BeanDeserializer(
266             _javaType, _xmlType, typeDesc);
267     }
268
269 }
270
Popular Tags