1 /***
2 * SubClusterType.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 SubClusterType extends org.globus.mds.glue.SubClusterOrHostType implements java.io.Serializable {
11 private org.globus.mds.glue.HostType[] host;
12
13 public SubClusterType() {
14 }
15
16 public SubClusterType(
17 org.globus.mds.glue.HostType[] host) {
18 this.host = host;
19 }
20
21
22 /***
23 * Gets the host value for this SubClusterType.
24 *
25 * @return host
26 */
27 public org.globus.mds.glue.HostType[] getHost() {
28 return host;
29 }
30
31
32 /***
33 * Sets the host value for this SubClusterType.
34 *
35 * @param host
36 */
37 public void setHost(org.globus.mds.glue.HostType[] host) {
38 this.host = host;
39 }
40
41 public org.globus.mds.glue.HostType getHost(int i) {
42 return this.host[i];
43 }
44
45 public void setHost(int i, org.globus.mds.glue.HostType _value) {
46 this.host[i] = _value;
47 }
48
49 private java.lang.Object __equalsCalc = null;
50 public synchronized boolean equals(java.lang.Object obj) {
51 if (!(obj instanceof SubClusterType)) return false;
52 SubClusterType other = (SubClusterType) obj;
53 if (obj == null) return false;
54 if (this == obj) return true;
55 if (__equalsCalc != null) {
56 return (__equalsCalc == obj);
57 }
58 __equalsCalc = obj;
59 boolean _equals;
60 _equals = super.equals(obj) &&
61 ((this.host==null && other.getHost()==null) ||
62 (this.host!=null &&
63 java.util.Arrays.equals(this.host, other.getHost())));
64 __equalsCalc = null;
65 return _equals;
66 }
67
68 private boolean __hashCodeCalc = false;
69 public synchronized int hashCode() {
70 if (__hashCodeCalc) {
71 return 0;
72 }
73 __hashCodeCalc = true;
74 int _hashCode = super.hashCode();
75 if (getHost() != null) {
76 for (int i=0;
77 i<java.lang.reflect.Array.getLength(getHost());
78 i++) {
79 java.lang.Object obj = java.lang.reflect.Array.get(getHost(), i);
80 if (obj != null &&
81 !obj.getClass().isArray()) {
82 _hashCode += obj.hashCode();
83 }
84 }
85 }
86 __hashCodeCalc = false;
87 return _hashCode;
88 }
89
90
91 private static org.apache.axis.description.TypeDesc typeDesc =
92 new org.apache.axis.description.TypeDesc(SubClusterType.class, true);
93
94 static {
95 typeDesc.setXmlType(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "SubClusterType"));
96 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
97 elemField.setFieldName("host");
98 elemField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "Host"));
99 elemField.setXmlType(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "HostType"));
100 elemField.setMinOccurs(0);
101 typeDesc.addFieldDesc(elemField);
102 }
103
104 /***
105 * Return type metadata object
106 */
107 public static org.apache.axis.description.TypeDesc getTypeDesc() {
108 return typeDesc;
109 }
110
111 /***
112 * Get Custom Serializer
113 */
114 public static org.apache.axis.encoding.Serializer getSerializer(
115 java.lang.String mechType,
116 java.lang.Class _javaType,
117 javax.xml.namespace.QName _xmlType) {
118 return
119 new org.apache.axis.encoding.ser.BeanSerializer(
120 _javaType, _xmlType, typeDesc);
121 }
122
123 /***
124 * Get Custom Deserializer
125 */
126 public static org.apache.axis.encoding.Deserializer getDeserializer(
127 java.lang.String mechType,
128 java.lang.Class _javaType,
129 javax.xml.namespace.QName _xmlType) {
130 return
131 new org.apache.axis.encoding.ser.BeanDeserializer(
132 _javaType, _xmlType, typeDesc);
133 }
134
135 }