1 /***
2 * InfoType.java
3 *
4 * This file was auto-generated from WSDL
5 * by the Apache Axis 1.2RC2 Jun 16, 2005 (10:54:53 EDT) WSDL2Java emitter.
6 */
7
8 package org.globus.mds.glue;
9
10 public class InfoType implements java.io.Serializable, org.apache.axis.encoding.AnyContentType {
11 private org.apache.axis.message.MessageElement [] _any;
12 private java.lang.String LRMSType;
13 private java.lang.String LRMSVersion;
14 private java.lang.String GRAMVersion;
15 private java.lang.String hostName;
16 private java.lang.String gatekeeperPort;
17 private java.lang.String totalCPUs;
18
19 public InfoType() {
20 }
21
22 public InfoType(
23 java.lang.String GRAMVersion,
24 java.lang.String LRMSType,
25 java.lang.String LRMSVersion,
26 org.apache.axis.message.MessageElement [] _any,
27 java.lang.String gatekeeperPort,
28 java.lang.String hostName,
29 java.lang.String totalCPUs) {
30 this._any = _any;
31 this.LRMSType = LRMSType;
32 this.LRMSVersion = LRMSVersion;
33 this.GRAMVersion = GRAMVersion;
34 this.hostName = hostName;
35 this.gatekeeperPort = gatekeeperPort;
36 this.totalCPUs = totalCPUs;
37 }
38
39
40 /***
41 * Gets the _any value for this InfoType.
42 *
43 * @return _any
44 */
45 public org.apache.axis.message.MessageElement [] get_any() {
46 return _any;
47 }
48
49
50 /***
51 * Sets the _any value for this InfoType.
52 *
53 * @param _any
54 */
55 public void set_any(org.apache.axis.message.MessageElement [] _any) {
56 this._any = _any;
57 }
58
59
60 /***
61 * Gets the LRMSType value for this InfoType.
62 *
63 * @return LRMSType
64 */
65 public java.lang.String getLRMSType() {
66 return LRMSType;
67 }
68
69
70 /***
71 * Sets the LRMSType value for this InfoType.
72 *
73 * @param LRMSType
74 */
75 public void setLRMSType(java.lang.String LRMSType) {
76 this.LRMSType = LRMSType;
77 }
78
79
80 /***
81 * Gets the LRMSVersion value for this InfoType.
82 *
83 * @return LRMSVersion
84 */
85 public java.lang.String getLRMSVersion() {
86 return LRMSVersion;
87 }
88
89
90 /***
91 * Sets the LRMSVersion value for this InfoType.
92 *
93 * @param LRMSVersion
94 */
95 public void setLRMSVersion(java.lang.String LRMSVersion) {
96 this.LRMSVersion = LRMSVersion;
97 }
98
99
100 /***
101 * Gets the GRAMVersion value for this InfoType.
102 *
103 * @return GRAMVersion
104 */
105 public java.lang.String getGRAMVersion() {
106 return GRAMVersion;
107 }
108
109
110 /***
111 * Sets the GRAMVersion value for this InfoType.
112 *
113 * @param GRAMVersion
114 */
115 public void setGRAMVersion(java.lang.String GRAMVersion) {
116 this.GRAMVersion = GRAMVersion;
117 }
118
119
120 /***
121 * Gets the hostName value for this InfoType.
122 *
123 * @return hostName
124 */
125 public java.lang.String getHostName() {
126 return hostName;
127 }
128
129
130 /***
131 * Sets the hostName value for this InfoType.
132 *
133 * @param hostName
134 */
135 public void setHostName(java.lang.String hostName) {
136 this.hostName = hostName;
137 }
138
139
140 /***
141 * Gets the gatekeeperPort value for this InfoType.
142 *
143 * @return gatekeeperPort
144 */
145 public java.lang.String getGatekeeperPort() {
146 return gatekeeperPort;
147 }
148
149
150 /***
151 * Sets the gatekeeperPort value for this InfoType.
152 *
153 * @param gatekeeperPort
154 */
155 public void setGatekeeperPort(java.lang.String gatekeeperPort) {
156 this.gatekeeperPort = gatekeeperPort;
157 }
158
159
160 /***
161 * Gets the totalCPUs value for this InfoType.
162 *
163 * @return totalCPUs
164 */
165 public java.lang.String getTotalCPUs() {
166 return totalCPUs;
167 }
168
169
170 /***
171 * Sets the totalCPUs value for this InfoType.
172 *
173 * @param totalCPUs
174 */
175 public void setTotalCPUs(java.lang.String totalCPUs) {
176 this.totalCPUs = totalCPUs;
177 }
178
179 private java.lang.Object __equalsCalc = null;
180 public synchronized boolean equals(java.lang.Object obj) {
181 if (!(obj instanceof InfoType)) return false;
182 InfoType other = (InfoType) obj;
183 if (obj == null) return false;
184 if (this == obj) return true;
185 if (__equalsCalc != null) {
186 return (__equalsCalc == obj);
187 }
188 __equalsCalc = obj;
189 boolean _equals;
190 _equals = true &&
191 ((this._any==null && other.get_any()==null) ||
192 (this._any!=null &&
193 java.util.Arrays.equals(this._any, other.get_any()))) &&
194 ((this.LRMSType==null && other.getLRMSType()==null) ||
195 (this.LRMSType!=null &&
196 this.LRMSType.equals(other.getLRMSType()))) &&
197 ((this.LRMSVersion==null && other.getLRMSVersion()==null) ||
198 (this.LRMSVersion!=null &&
199 this.LRMSVersion.equals(other.getLRMSVersion()))) &&
200 ((this.GRAMVersion==null && other.getGRAMVersion()==null) ||
201 (this.GRAMVersion!=null &&
202 this.GRAMVersion.equals(other.getGRAMVersion()))) &&
203 ((this.hostName==null && other.getHostName()==null) ||
204 (this.hostName!=null &&
205 this.hostName.equals(other.getHostName()))) &&
206 ((this.gatekeeperPort==null && other.getGatekeeperPort()==null) ||
207 (this.gatekeeperPort!=null &&
208 this.gatekeeperPort.equals(other.getGatekeeperPort()))) &&
209 ((this.totalCPUs==null && other.getTotalCPUs()==null) ||
210 (this.totalCPUs!=null &&
211 this.totalCPUs.equals(other.getTotalCPUs())));
212 __equalsCalc = null;
213 return _equals;
214 }
215
216 private boolean __hashCodeCalc = false;
217 public synchronized int hashCode() {
218 if (__hashCodeCalc) {
219 return 0;
220 }
221 __hashCodeCalc = true;
222 int _hashCode = 1;
223 if (get_any() != null) {
224 for (int i=0;
225 i<java.lang.reflect.Array.getLength(get_any());
226 i++) {
227 java.lang.Object obj = java.lang.reflect.Array.get(get_any(), i);
228 if (obj != null &&
229 !obj.getClass().isArray()) {
230 _hashCode += obj.hashCode();
231 }
232 }
233 }
234 if (getLRMSType() != null) {
235 _hashCode += getLRMSType().hashCode();
236 }
237 if (getLRMSVersion() != null) {
238 _hashCode += getLRMSVersion().hashCode();
239 }
240 if (getGRAMVersion() != null) {
241 _hashCode += getGRAMVersion().hashCode();
242 }
243 if (getHostName() != null) {
244 _hashCode += getHostName().hashCode();
245 }
246 if (getGatekeeperPort() != null) {
247 _hashCode += getGatekeeperPort().hashCode();
248 }
249 if (getTotalCPUs() != null) {
250 _hashCode += getTotalCPUs().hashCode();
251 }
252 __hashCodeCalc = false;
253 return _hashCode;
254 }
255
256
257 private static org.apache.axis.description.TypeDesc typeDesc =
258 new org.apache.axis.description.TypeDesc(InfoType.class, true);
259
260 static {
261 typeDesc.setXmlType(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "InfoType"));
262 org.apache.axis.description.AttributeDesc attrField = new org.apache.axis.description.AttributeDesc();
263 attrField.setFieldName("LRMSType");
264 attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "LRMSType"));
265 attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
266 typeDesc.addFieldDesc(attrField);
267 attrField = new org.apache.axis.description.AttributeDesc();
268 attrField.setFieldName("LRMSVersion");
269 attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "LRMSVersion"));
270 attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
271 typeDesc.addFieldDesc(attrField);
272 attrField = new org.apache.axis.description.AttributeDesc();
273 attrField.setFieldName("GRAMVersion");
274 attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "GRAMVersion"));
275 attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
276 typeDesc.addFieldDesc(attrField);
277 attrField = new org.apache.axis.description.AttributeDesc();
278 attrField.setFieldName("hostName");
279 attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "HostName"));
280 attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
281 typeDesc.addFieldDesc(attrField);
282 attrField = new org.apache.axis.description.AttributeDesc();
283 attrField.setFieldName("gatekeeperPort");
284 attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "GatekeeperPort"));
285 attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
286 typeDesc.addFieldDesc(attrField);
287 attrField = new org.apache.axis.description.AttributeDesc();
288 attrField.setFieldName("totalCPUs");
289 attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "TotalCPUs"));
290 attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
291 typeDesc.addFieldDesc(attrField);
292 }
293
294 /***
295 * Return type metadata object
296 */
297 public static org.apache.axis.description.TypeDesc getTypeDesc() {
298 return typeDesc;
299 }
300
301 /***
302 * Get Custom Serializer
303 */
304 public static org.apache.axis.encoding.Serializer getSerializer(
305 java.lang.String mechType,
306 java.lang.Class _javaType,
307 javax.xml.namespace.QName _xmlType) {
308 return
309 new org.apache.axis.encoding.ser.BeanSerializer(
310 _javaType, _xmlType, typeDesc);
311 }
312
313 /***
314 * Get Custom Deserializer
315 */
316 public static org.apache.axis.encoding.Deserializer getDeserializer(
317 java.lang.String mechType,
318 java.lang.Class _javaType,
319 javax.xml.namespace.QName _xmlType) {
320 return
321 new org.apache.axis.encoding.ser.BeanDeserializer(
322 _javaType, _xmlType, typeDesc);
323 }
324
325 }