Formatting
[jalview.git] / src / ext / vamsas / ServiceHandles.java
1 /**
2  * ServiceHandles.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
6  */
7
8 package ext.vamsas;
9
10 public class ServiceHandles
11     implements java.io.Serializable
12 {
13   private ext.vamsas.ServiceHandle[] services;
14
15   public ServiceHandles()
16   {
17   }
18
19   public ServiceHandles(
20       ext.vamsas.ServiceHandle[] services)
21   {
22     this.services = services;
23   }
24
25   /**
26    * Gets the services value for this ServiceHandles.
27    *
28    * @return services
29    */
30   public ext.vamsas.ServiceHandle[] getServices()
31   {
32     return services;
33   }
34
35   /**
36    * Sets the services value for this ServiceHandles.
37    *
38    * @param services
39    */
40   public void setServices(ext.vamsas.ServiceHandle[] services)
41   {
42     this.services = services;
43   }
44
45   private java.lang.Object __equalsCalc = null;
46   public synchronized boolean equals(java.lang.Object obj)
47   {
48     if (! (obj instanceof ServiceHandles))
49     {
50       return false;
51     }
52     ServiceHandles other = (ServiceHandles) obj;
53     if (obj == null)
54     {
55       return false;
56     }
57     if (this == obj)
58     {
59       return true;
60     }
61     if (__equalsCalc != null)
62     {
63       return (__equalsCalc == obj);
64     }
65     __equalsCalc = obj;
66     boolean _equals;
67     _equals = true &&
68         ( (this.services == null && other.getServices() == null) ||
69          (this.services != null &&
70           java.util.Arrays.equals(this.services, other.getServices())));
71     __equalsCalc = null;
72     return _equals;
73   }
74
75   private boolean __hashCodeCalc = false;
76   public synchronized int hashCode()
77   {
78     if (__hashCodeCalc)
79     {
80       return 0;
81     }
82     __hashCodeCalc = true;
83     int _hashCode = 1;
84     if (getServices() != null)
85     {
86       for (int i = 0;
87            i < java.lang.reflect.Array.getLength(getServices());
88            i++)
89       {
90         java.lang.Object obj = java.lang.reflect.Array.get(getServices(), i);
91         if (obj != null &&
92             !obj.getClass().isArray())
93         {
94           _hashCode += obj.hashCode();
95         }
96       }
97     }
98     __hashCodeCalc = false;
99     return _hashCode;
100   }
101
102   // Type metadata
103   private static org.apache.axis.description.TypeDesc typeDesc =
104       new org.apache.axis.description.TypeDesc(ServiceHandles.class, true);
105
106   static
107   {
108     typeDesc.setXmlType(new javax.xml.namespace.QName("registry.objects.vamsas",
109         "ServiceHandles"));
110     org.apache.axis.description.ElementDesc elemField = new org.apache.axis.
111         description.ElementDesc();
112     elemField.setFieldName("services");
113     elemField.setXmlName(new javax.xml.namespace.QName("", "services"));
114     elemField.setXmlType(new javax.xml.namespace.QName(
115         "registry.objects.vamsas", "ServiceHandle"));
116     typeDesc.addFieldDesc(elemField);
117   }
118
119   /**
120    * Return type metadata object
121    */
122   public static org.apache.axis.description.TypeDesc getTypeDesc()
123   {
124     return typeDesc;
125   }
126
127   /**
128    * Get Custom Serializer
129    */
130   public static org.apache.axis.encoding.Serializer getSerializer(
131       java.lang.String mechType,
132       java.lang.Class _javaType,
133       javax.xml.namespace.QName _xmlType)
134   {
135     return
136         new org.apache.axis.encoding.ser.BeanSerializer(
137             _javaType, _xmlType, typeDesc);
138   }
139
140   /**
141    * Get Custom Deserializer
142    */
143   public static org.apache.axis.encoding.Deserializer getDeserializer(
144       java.lang.String mechType,
145       java.lang.Class _javaType,
146       javax.xml.namespace.QName _xmlType)
147   {
148     return
149         new org.apache.axis.encoding.ser.BeanDeserializer(
150             _javaType, _xmlType, typeDesc);
151   }
152
153 }