1
|
/**
|
2
|
* Classification.java
|
3
|
*
|
4
|
* This file was auto-generated from WSDL
|
5
|
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
6
|
*/
|
7
|
|
8
|
package org.cybertaxonomy.utis.checklist.worms;
|
9
|
|
10
|
public class Classification implements java.io.Serializable {
|
11
|
private int aphiaID;
|
12
|
|
13
|
private java.lang.String rank;
|
14
|
|
15
|
private java.lang.String scientificname;
|
16
|
|
17
|
private org.cybertaxonomy.utis.checklist.worms.Classification child;
|
18
|
|
19
|
public Classification() {
|
20
|
}
|
21
|
|
22
|
public Classification(
|
23
|
int aphiaID,
|
24
|
java.lang.String rank,
|
25
|
java.lang.String scientificname,
|
26
|
org.cybertaxonomy.utis.checklist.worms.Classification child) {
|
27
|
this.aphiaID = aphiaID;
|
28
|
this.rank = rank;
|
29
|
this.scientificname = scientificname;
|
30
|
this.child = child;
|
31
|
}
|
32
|
|
33
|
|
34
|
/**
|
35
|
* Gets the aphiaID value for this Classification.
|
36
|
*
|
37
|
* @return aphiaID
|
38
|
*/
|
39
|
public int getAphiaID() {
|
40
|
return aphiaID;
|
41
|
}
|
42
|
|
43
|
|
44
|
/**
|
45
|
* Sets the aphiaID value for this Classification.
|
46
|
*
|
47
|
* @param aphiaID
|
48
|
*/
|
49
|
public void setAphiaID(int aphiaID) {
|
50
|
this.aphiaID = aphiaID;
|
51
|
}
|
52
|
|
53
|
|
54
|
/**
|
55
|
* Gets the rank value for this Classification.
|
56
|
*
|
57
|
* @return rank
|
58
|
*/
|
59
|
public java.lang.String getRank() {
|
60
|
return rank;
|
61
|
}
|
62
|
|
63
|
|
64
|
/**
|
65
|
* Sets the rank value for this Classification.
|
66
|
*
|
67
|
* @param rank
|
68
|
*/
|
69
|
public void setRank(java.lang.String rank) {
|
70
|
this.rank = rank;
|
71
|
}
|
72
|
|
73
|
|
74
|
/**
|
75
|
* Gets the scientificname value for this Classification.
|
76
|
*
|
77
|
* @return scientificname
|
78
|
*/
|
79
|
public java.lang.String getScientificname() {
|
80
|
return scientificname;
|
81
|
}
|
82
|
|
83
|
|
84
|
/**
|
85
|
* Sets the scientificname value for this Classification.
|
86
|
*
|
87
|
* @param scientificname
|
88
|
*/
|
89
|
public void setScientificname(java.lang.String scientificname) {
|
90
|
this.scientificname = scientificname;
|
91
|
}
|
92
|
|
93
|
|
94
|
/**
|
95
|
* Gets the child value for this Classification.
|
96
|
*
|
97
|
* @return child
|
98
|
*/
|
99
|
public org.cybertaxonomy.utis.checklist.worms.Classification getChild() {
|
100
|
return child;
|
101
|
}
|
102
|
|
103
|
|
104
|
/**
|
105
|
* Sets the child value for this Classification.
|
106
|
*
|
107
|
* @param child
|
108
|
*/
|
109
|
public void setChild(org.cybertaxonomy.utis.checklist.worms.Classification child) {
|
110
|
this.child = child;
|
111
|
}
|
112
|
|
113
|
private java.lang.Object __equalsCalc = null;
|
114
|
public synchronized boolean equals(java.lang.Object obj) {
|
115
|
if (!(obj instanceof Classification)) return false;
|
116
|
Classification other = (Classification) obj;
|
117
|
if (obj == null) return false;
|
118
|
if (this == obj) return true;
|
119
|
if (__equalsCalc != null) {
|
120
|
return (__equalsCalc == obj);
|
121
|
}
|
122
|
__equalsCalc = obj;
|
123
|
boolean _equals;
|
124
|
_equals = true &&
|
125
|
this.aphiaID == other.getAphiaID() &&
|
126
|
((this.rank==null && other.getRank()==null) ||
|
127
|
(this.rank!=null &&
|
128
|
this.rank.equals(other.getRank()))) &&
|
129
|
((this.scientificname==null && other.getScientificname()==null) ||
|
130
|
(this.scientificname!=null &&
|
131
|
this.scientificname.equals(other.getScientificname()))) &&
|
132
|
((this.child==null && other.getChild()==null) ||
|
133
|
(this.child!=null &&
|
134
|
this.child.equals(other.getChild())));
|
135
|
__equalsCalc = null;
|
136
|
return _equals;
|
137
|
}
|
138
|
|
139
|
private boolean __hashCodeCalc = false;
|
140
|
public synchronized int hashCode() {
|
141
|
if (__hashCodeCalc) {
|
142
|
return 0;
|
143
|
}
|
144
|
__hashCodeCalc = true;
|
145
|
int _hashCode = 1;
|
146
|
_hashCode += getAphiaID();
|
147
|
if (getRank() != null) {
|
148
|
_hashCode += getRank().hashCode();
|
149
|
}
|
150
|
if (getScientificname() != null) {
|
151
|
_hashCode += getScientificname().hashCode();
|
152
|
}
|
153
|
if (getChild() != null) {
|
154
|
_hashCode += getChild().hashCode();
|
155
|
}
|
156
|
__hashCodeCalc = false;
|
157
|
return _hashCode;
|
158
|
}
|
159
|
|
160
|
// Type metadata
|
161
|
private static org.apache.axis.description.TypeDesc typeDesc =
|
162
|
new org.apache.axis.description.TypeDesc(Classification.class, true);
|
163
|
|
164
|
static {
|
165
|
typeDesc.setXmlType(new javax.xml.namespace.QName("http://aphia/v1.0", "Classification"));
|
166
|
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
167
|
elemField.setFieldName("aphiaID");
|
168
|
elemField.setXmlName(new javax.xml.namespace.QName("", "AphiaID"));
|
169
|
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
|
170
|
elemField.setNillable(false);
|
171
|
typeDesc.addFieldDesc(elemField);
|
172
|
elemField = new org.apache.axis.description.ElementDesc();
|
173
|
elemField.setFieldName("rank");
|
174
|
elemField.setXmlName(new javax.xml.namespace.QName("", "rank"));
|
175
|
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
176
|
elemField.setNillable(false);
|
177
|
typeDesc.addFieldDesc(elemField);
|
178
|
elemField = new org.apache.axis.description.ElementDesc();
|
179
|
elemField.setFieldName("scientificname");
|
180
|
elemField.setXmlName(new javax.xml.namespace.QName("", "scientificname"));
|
181
|
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
182
|
elemField.setNillable(false);
|
183
|
typeDesc.addFieldDesc(elemField);
|
184
|
elemField = new org.apache.axis.description.ElementDesc();
|
185
|
elemField.setFieldName("child");
|
186
|
elemField.setXmlName(new javax.xml.namespace.QName("", "child"));
|
187
|
elemField.setXmlType(new javax.xml.namespace.QName("http://aphia/v1.0", "Classification"));
|
188
|
elemField.setNillable(false);
|
189
|
typeDesc.addFieldDesc(elemField);
|
190
|
}
|
191
|
|
192
|
/**
|
193
|
* Return type metadata object
|
194
|
*/
|
195
|
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
196
|
return typeDesc;
|
197
|
}
|
198
|
|
199
|
/**
|
200
|
* Get Custom Serializer
|
201
|
*/
|
202
|
public static org.apache.axis.encoding.Serializer getSerializer(
|
203
|
java.lang.String mechType,
|
204
|
java.lang.Class _javaType,
|
205
|
javax.xml.namespace.QName _xmlType) {
|
206
|
return
|
207
|
new org.apache.axis.encoding.ser.BeanSerializer(
|
208
|
_javaType, _xmlType, typeDesc);
|
209
|
}
|
210
|
|
211
|
/**
|
212
|
* Get Custom Deserializer
|
213
|
*/
|
214
|
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
215
|
java.lang.String mechType,
|
216
|
java.lang.Class _javaType,
|
217
|
javax.xml.namespace.QName _xmlType) {
|
218
|
return
|
219
|
new org.apache.axis.encoding.ser.BeanDeserializer(
|
220
|
_javaType, _xmlType, typeDesc);
|
221
|
}
|
222
|
|
223
|
}
|