KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * XincoVersion.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: XincoVersion
30  *
31  * Description: version 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 XincoVersion implements java.io.Serializable JavaDoc {
47     private int version_high;
48     private int version_low;
49     private int version_mid;
50     private java.lang.String JavaDoc version_postfix;
51
52     public XincoVersion() {
53     }
54
55     public int getVersion_high() {
56         return version_high;
57     }
58
59     public void setVersion_high(int version_high) {
60         this.version_high = version_high;
61     }
62
63     public int getVersion_low() {
64         return version_low;
65     }
66
67     public void setVersion_low(int version_low) {
68         this.version_low = version_low;
69     }
70
71     public int getVersion_mid() {
72         return version_mid;
73     }
74
75     public void setVersion_mid(int version_mid) {
76         this.version_mid = version_mid;
77     }
78
79     public java.lang.String JavaDoc getVersion_postfix() {
80         return version_postfix;
81     }
82
83     public void setVersion_postfix(java.lang.String JavaDoc version_postfix) {
84         this.version_postfix = version_postfix;
85     }
86
87     private java.lang.Object JavaDoc __equalsCalc = null;
88     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
89         if (!(obj instanceof XincoVersion)) return false;
90         XincoVersion other = (XincoVersion) 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.version_high == other.getVersion_high() &&
100             this.version_low == other.getVersion_low() &&
101             this.version_mid == other.getVersion_mid() &&
102             ((this.version_postfix==null && other.getVersion_postfix()==null) ||
103              (this.version_postfix!=null &&
104               this.version_postfix.equals(other.getVersion_postfix())));
105         __equalsCalc = null;
106         return _equals;
107     }
108
109     private boolean __hashCodeCalc = false;
110     public synchronized int hashCode() {
111         if (__hashCodeCalc) {
112             return 0;
113         }
114         __hashCodeCalc = true;
115         int _hashCode = 1;
116         _hashCode += getVersion_high();
117         _hashCode += getVersion_low();
118         _hashCode += getVersion_mid();
119         if (getVersion_postfix() != null) {
120             _hashCode += getVersion_postfix().hashCode();
121         }
122         __hashCodeCalc = false;
123         return _hashCode;
124     }
125
126     // Type metadata
127
private static org.apache.axis.description.TypeDesc typeDesc =
128         new org.apache.axis.description.TypeDesc(XincoVersion.class);
129
130     static {
131         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://core.xinco.bluecubs.com", "XincoVersion"));
132         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
133         elemField.setFieldName("version_high");
134         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "version_high"));
135         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
136         typeDesc.addFieldDesc(elemField);
137         elemField = new org.apache.axis.description.ElementDesc();
138         elemField.setFieldName("version_low");
139         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "version_low"));
140         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
141         typeDesc.addFieldDesc(elemField);
142         elemField = new org.apache.axis.description.ElementDesc();
143         elemField.setFieldName("version_mid");
144         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "version_mid"));
145         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
146         typeDesc.addFieldDesc(elemField);
147         elemField = new org.apache.axis.description.ElementDesc();
148         elemField.setFieldName("version_postfix");
149         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "version_postfix"));
150         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
151         typeDesc.addFieldDesc(elemField);
152     }
153
154     /**
155      * Return type metadata object
156      */

157     public static org.apache.axis.description.TypeDesc getTypeDesc() {
158         return typeDesc;
159     }
160
161     /**
162      * Get Custom Serializer
163      */

164     public static org.apache.axis.encoding.Serializer getSerializer(
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.BeanSerializer(
170             _javaType, _xmlType, typeDesc);
171     }
172
173     /**
174      * Get Custom Deserializer
175      */

176     public static org.apache.axis.encoding.Deserializer getDeserializer(
177            java.lang.String JavaDoc mechType,
178            java.lang.Class JavaDoc _javaType,
179            javax.xml.namespace.QName JavaDoc _xmlType) {
180         return
181           new org.apache.axis.encoding.ser.BeanDeserializer(
182             _javaType, _xmlType, typeDesc);
183     }
184
185 }
186
Popular Tags