KickJava   Java API By Example, From Geeks To Geeks.

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


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

177     public static org.apache.axis.description.TypeDesc getTypeDesc() {
178         return typeDesc;
179     }
180
181     /**
182      * Get Custom Serializer
183      */

184     public static org.apache.axis.encoding.Serializer getSerializer(
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.BeanSerializer(
190             _javaType, _xmlType, typeDesc);
191     }
192
193     /**
194      * Get Custom Deserializer
195      */

196     public static org.apache.axis.encoding.Deserializer getDeserializer(
197            java.lang.String JavaDoc mechType,
198            java.lang.Class JavaDoc _javaType,
199            javax.xml.namespace.QName JavaDoc _xmlType) {
200         return
201           new org.apache.axis.encoding.ser.BeanDeserializer(
202             _javaType, _xmlType, typeDesc);
203     }
204
205 }
206
Popular Tags