KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > bluecubs > xinco > add > XincoAddAttribute


1 /**
2  * XincoAddAttribute.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: XincoAddAttribute
30  *
31  * Description: additional attributes of a data 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.add;
45
46 public class XincoAddAttribute implements java.io.Serializable JavaDoc {
47     private java.util.Calendar JavaDoc attrib_datetime;
48     private double attrib_double;
49     private int attrib_int;
50     private java.lang.String JavaDoc attrib_text;
51     private long attrib_unsignedint;
52     private java.lang.String JavaDoc attrib_varchar;
53     private int attribute_id;
54     private int xinco_core_data_id;
55
56     public XincoAddAttribute() {
57     }
58
59     public java.util.Calendar JavaDoc getAttrib_datetime() {
60         return attrib_datetime;
61     }
62
63     public void setAttrib_datetime(java.util.Calendar JavaDoc attrib_datetime) {
64         this.attrib_datetime = attrib_datetime;
65     }
66
67     public double getAttrib_double() {
68         return attrib_double;
69     }
70
71     public void setAttrib_double(double attrib_double) {
72         this.attrib_double = attrib_double;
73     }
74
75     public int getAttrib_int() {
76         return attrib_int;
77     }
78
79     public void setAttrib_int(int attrib_int) {
80         this.attrib_int = attrib_int;
81     }
82
83     public java.lang.String JavaDoc getAttrib_text() {
84         return attrib_text;
85     }
86
87     public void setAttrib_text(java.lang.String JavaDoc attrib_text) {
88         this.attrib_text = attrib_text;
89     }
90
91     public long getAttrib_unsignedint() {
92         return attrib_unsignedint;
93     }
94
95     public void setAttrib_unsignedint(long attrib_unsignedint) {
96         this.attrib_unsignedint = attrib_unsignedint;
97     }
98
99     public java.lang.String JavaDoc getAttrib_varchar() {
100         return attrib_varchar;
101     }
102
103     public void setAttrib_varchar(java.lang.String JavaDoc attrib_varchar) {
104         this.attrib_varchar = attrib_varchar;
105     }
106
107     public int getAttribute_id() {
108         return attribute_id;
109     }
110
111     public void setAttribute_id(int attribute_id) {
112         this.attribute_id = attribute_id;
113     }
114
115     public int getXinco_core_data_id() {
116         return xinco_core_data_id;
117     }
118
119     public void setXinco_core_data_id(int xinco_core_data_id) {
120         this.xinco_core_data_id = xinco_core_data_id;
121     }
122
123     private java.lang.Object JavaDoc __equalsCalc = null;
124     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
125         if (!(obj instanceof XincoAddAttribute)) return false;
126         XincoAddAttribute other = (XincoAddAttribute) 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.attrib_datetime==null && other.getAttrib_datetime()==null) ||
136              (this.attrib_datetime!=null &&
137               this.attrib_datetime.equals(other.getAttrib_datetime()))) &&
138             this.attrib_double == other.getAttrib_double() &&
139             this.attrib_int == other.getAttrib_int() &&
140             ((this.attrib_text==null && other.getAttrib_text()==null) ||
141              (this.attrib_text!=null &&
142               this.attrib_text.equals(other.getAttrib_text()))) &&
143             this.attrib_unsignedint == other.getAttrib_unsignedint() &&
144             ((this.attrib_varchar==null && other.getAttrib_varchar()==null) ||
145              (this.attrib_varchar!=null &&
146               this.attrib_varchar.equals(other.getAttrib_varchar()))) &&
147             this.attribute_id == other.getAttribute_id() &&
148             this.xinco_core_data_id == other.getXinco_core_data_id();
149         __equalsCalc = null;
150         return _equals;
151     }
152
153     private boolean __hashCodeCalc = false;
154     public synchronized int hashCode() {
155         if (__hashCodeCalc) {
156             return 0;
157         }
158         __hashCodeCalc = true;
159         int _hashCode = 1;
160         if (getAttrib_datetime() != null) {
161             _hashCode += getAttrib_datetime().hashCode();
162         }
163         _hashCode += new Double JavaDoc(getAttrib_double()).hashCode();
164         _hashCode += getAttrib_int();
165         if (getAttrib_text() != null) {
166             _hashCode += getAttrib_text().hashCode();
167         }
168         _hashCode += new Long JavaDoc(getAttrib_unsignedint()).hashCode();
169         if (getAttrib_varchar() != null) {
170             _hashCode += getAttrib_varchar().hashCode();
171         }
172         _hashCode += getAttribute_id();
173         _hashCode += getXinco_core_data_id();
174         __hashCodeCalc = false;
175         return _hashCode;
176     }
177
178     // Type metadata
179
private static org.apache.axis.description.TypeDesc typeDesc =
180         new org.apache.axis.description.TypeDesc(XincoAddAttribute.class);
181
182     static {
183         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://add.xinco.bluecubs.com", "XincoAddAttribute"));
184         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
185         elemField.setFieldName("attrib_datetime");
186         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "attrib_datetime"));
187         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "dateTime"));
188         typeDesc.addFieldDesc(elemField);
189         elemField = new org.apache.axis.description.ElementDesc();
190         elemField.setFieldName("attrib_double");
191         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "attrib_double"));
192         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "double"));
193         typeDesc.addFieldDesc(elemField);
194         elemField = new org.apache.axis.description.ElementDesc();
195         elemField.setFieldName("attrib_int");
196         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "attrib_int"));
197         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
198         typeDesc.addFieldDesc(elemField);
199         elemField = new org.apache.axis.description.ElementDesc();
200         elemField.setFieldName("attrib_text");
201         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "attrib_text"));
202         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
203         typeDesc.addFieldDesc(elemField);
204         elemField = new org.apache.axis.description.ElementDesc();
205         elemField.setFieldName("attrib_unsignedint");
206         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "attrib_unsignedint"));
207         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "long"));
208         typeDesc.addFieldDesc(elemField);
209         elemField = new org.apache.axis.description.ElementDesc();
210         elemField.setFieldName("attrib_varchar");
211         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "attrib_varchar"));
212         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
213         typeDesc.addFieldDesc(elemField);
214         elemField = new org.apache.axis.description.ElementDesc();
215         elemField.setFieldName("attribute_id");
216         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "attribute_id"));
217         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
218         typeDesc.addFieldDesc(elemField);
219         elemField = new org.apache.axis.description.ElementDesc();
220         elemField.setFieldName("xinco_core_data_id");
221         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "xinco_core_data_id"));
222         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
223         typeDesc.addFieldDesc(elemField);
224     }
225
226     /**
227      * Return type metadata object
228      */

229     public static org.apache.axis.description.TypeDesc getTypeDesc() {
230         return typeDesc;
231     }
232
233     /**
234      * Get Custom Serializer
235      */

236     public static org.apache.axis.encoding.Serializer getSerializer(
237            java.lang.String JavaDoc mechType,
238            java.lang.Class JavaDoc _javaType,
239            javax.xml.namespace.QName JavaDoc _xmlType) {
240         return
241           new org.apache.axis.encoding.ser.BeanSerializer(
242             _javaType, _xmlType, typeDesc);
243     }
244
245     /**
246      * Get Custom Deserializer
247      */

248     public static org.apache.axis.encoding.Deserializer getDeserializer(
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.BeanDeserializer(
254             _javaType, _xmlType, typeDesc);
255     }
256
257 }
258
Popular Tags