KickJava   Java API By Example, From Geeks To Geeks.

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


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

145     public static org.apache.axis.description.TypeDesc getTypeDesc() {
146         return typeDesc;
147     }
148
149     /**
150      * Get Custom Serializer
151      */

152     public static org.apache.axis.encoding.Serializer getSerializer(
153            java.lang.String JavaDoc mechType,
154            java.lang.Class JavaDoc _javaType,
155            javax.xml.namespace.QName JavaDoc _xmlType) {
156         return
157           new org.apache.axis.encoding.ser.BeanSerializer(
158             _javaType, _xmlType, typeDesc);
159     }
160
161     /**
162      * Get Custom Deserializer
163      */

164     public static org.apache.axis.encoding.Deserializer getDeserializer(
165            java.lang.String JavaDoc mechType,
166            java.lang.Class JavaDoc _javaType,
167            javax.xml.namespace.QName JavaDoc _xmlType) {
168         return
169           new org.apache.axis.encoding.ser.BeanDeserializer(
170             _javaType, _xmlType, typeDesc);
171     }
172
173 }
174
Popular Tags