KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * XincoCoreGroup.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: XincoCoreGroup
30  *
31  * Description: group
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 XincoCoreGroup implements java.io.Serializable JavaDoc {
47     private java.lang.String JavaDoc designation;
48     private int id;
49     private int status_number;
50
51     public XincoCoreGroup() {
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 int getStatus_number() {
71         return status_number;
72     }
73
74     public void setStatus_number(int status_number) {
75         this.status_number = status_number;
76     }
77
78     private java.lang.Object JavaDoc __equalsCalc = null;
79     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
80         if (!(obj instanceof XincoCoreGroup)) return false;
81         XincoCoreGroup other = (XincoCoreGroup) 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.status_number == other.getStatus_number();
95         __equalsCalc = null;
96         return _equals;
97     }
98
99     private boolean __hashCodeCalc = false;
100     public synchronized int hashCode() {
101         if (__hashCodeCalc) {
102             return 0;
103         }
104         __hashCodeCalc = true;
105         int _hashCode = 1;
106         if (getDesignation() != null) {
107             _hashCode += getDesignation().hashCode();
108         }
109         _hashCode += getId();
110         _hashCode += getStatus_number();
111         __hashCodeCalc = false;
112         return _hashCode;
113     }
114
115     // Type metadata
116
private static org.apache.axis.description.TypeDesc typeDesc =
117         new org.apache.axis.description.TypeDesc(XincoCoreGroup.class);
118
119     static {
120         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://core.xinco.bluecubs.com", "XincoCoreGroup"));
121         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
122         elemField.setFieldName("designation");
123         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "designation"));
124         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
125         typeDesc.addFieldDesc(elemField);
126         elemField = new org.apache.axis.description.ElementDesc();
127         elemField.setFieldName("id");
128         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "id"));
129         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
130         typeDesc.addFieldDesc(elemField);
131         elemField = new org.apache.axis.description.ElementDesc();
132         elemField.setFieldName("status_number");
133         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "status_number"));
134         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
135         typeDesc.addFieldDesc(elemField);
136     }
137
138     /**
139      * Return type metadata object
140      */

141     public static org.apache.axis.description.TypeDesc getTypeDesc() {
142         return typeDesc;
143     }
144
145     /**
146      * Get Custom Serializer
147      */

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

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