KickJava   Java API By Example, From Geeks To Geeks.

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


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

237     public static org.apache.axis.description.TypeDesc getTypeDesc() {
238         return typeDesc;
239     }
240
241     /**
242      * Get Custom Serializer
243      */

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

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