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