KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * XincoCoreDataType.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: XincoCoreDataType
30  *
31  * Description: data type
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 XincoCoreDataType implements java.io.Serializable JavaDoc {
47     private java.lang.String JavaDoc designation;
48     private int id;
49     private java.lang.String JavaDoc description;
50     private java.util.Vector JavaDoc xinco_core_data_type_attributes;
51
52     public XincoCoreDataType() {
53     }
54
55     public java.lang.String JavaDoc getDesignation() {
56         return designation;
57     }
58
59     public void setDesignation(java.lang.String JavaDoc designation) {
60         this.designation = designation;
61     }
62
63     public int getId() {
64         return id;
65     }
66
67     public void setId(int id) {
68         this.id = id;
69     }
70
71     public java.lang.String JavaDoc getDescription() {
72         return description;
73     }
74
75     public void setDescription(java.lang.String JavaDoc description) {
76         this.description = description;
77     }
78
79     public java.util.Vector JavaDoc getXinco_core_data_type_attributes() {
80         return xinco_core_data_type_attributes;
81     }
82
83     public void setXinco_core_data_type_attributes(java.util.Vector JavaDoc xinco_core_data_type_attributes) {
84         this.xinco_core_data_type_attributes = xinco_core_data_type_attributes;
85     }
86
87     private java.lang.Object JavaDoc __equalsCalc = null;
88     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
89         if (!(obj instanceof XincoCoreDataType)) return false;
90         XincoCoreDataType other = (XincoCoreDataType) obj;
91         if (obj == null) return false;
92         if (this == obj) return true;
93         if (__equalsCalc != null) {
94             return (__equalsCalc == obj);
95         }
96         __equalsCalc = obj;
97         boolean _equals;
98         _equals = true &&
99             ((this.designation==null && other.getDesignation()==null) ||
100              (this.designation!=null &&
101               this.designation.equals(other.getDesignation()))) &&
102             this.id == other.getId() &&
103             ((this.description==null && other.getDescription()==null) ||
104              (this.description!=null &&
105               this.description.equals(other.getDescription()))) &&
106             ((this.xinco_core_data_type_attributes==null && other.getXinco_core_data_type_attributes()==null) ||
107              (this.xinco_core_data_type_attributes!=null &&
108               this.xinco_core_data_type_attributes.equals(other.getXinco_core_data_type_attributes())));
109         __equalsCalc = null;
110         return _equals;
111     }
112
113     private boolean __hashCodeCalc = false;
114     public synchronized int hashCode() {
115         if (__hashCodeCalc) {
116             return 0;
117         }
118         __hashCodeCalc = true;
119         int _hashCode = 1;
120         if (getDesignation() != null) {
121             _hashCode += getDesignation().hashCode();
122         }
123         _hashCode += getId();
124         if (getDescription() != null) {
125             _hashCode += getDescription().hashCode();
126         }
127         if (getXinco_core_data_type_attributes() != null) {
128             _hashCode += getXinco_core_data_type_attributes().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(XincoCoreDataType.class);
137
138     static {
139         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://core.xinco.bluecubs.com", "XincoCoreDataType"));
140         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
141         elemField.setFieldName("designation");
142         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "designation"));
143         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
144         typeDesc.addFieldDesc(elemField);
145         elemField = new org.apache.axis.description.ElementDesc();
146         elemField.setFieldName("id");
147         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "id"));
148         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
149         typeDesc.addFieldDesc(elemField);
150         elemField = new org.apache.axis.description.ElementDesc();
151         elemField.setFieldName("description");
152         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "description"));
153         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
154         typeDesc.addFieldDesc(elemField);
155         elemField = new org.apache.axis.description.ElementDesc();
156         elemField.setFieldName("xinco_core_data_type_attributes");
157         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "xinco_core_data_type_attributes"));
158         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://xml.apache.org/xml-soap", "Vector"));
159         typeDesc.addFieldDesc(elemField);
160     }
161
162     /**
163      * Return type metadata object
164      */

165     public static org.apache.axis.description.TypeDesc getTypeDesc() {
166         return typeDesc;
167     }
168
169     /**
170      * Get Custom Serializer
171      */

172     public static org.apache.axis.encoding.Serializer getSerializer(
173            java.lang.String JavaDoc mechType,
174            java.lang.Class JavaDoc _javaType,
175            javax.xml.namespace.QName JavaDoc _xmlType) {
176         return
177           new org.apache.axis.encoding.ser.BeanSerializer(
178             _javaType, _xmlType, typeDesc);
179     }
180
181     /**
182      * Get Custom Deserializer
183      */

184     public static org.apache.axis.encoding.Deserializer getDeserializer(
185            java.lang.String JavaDoc mechType,
186            java.lang.Class JavaDoc _javaType,
187            javax.xml.namespace.QName JavaDoc _xmlType) {
188         return
189           new org.apache.axis.encoding.ser.BeanDeserializer(
190             _javaType, _xmlType, typeDesc);
191     }
192
193 }
194
Popular Tags