2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $$Year-Rel$$ The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
23 public class ServiceHandles implements java.io.Serializable
25 private ext.vamsas.ServiceHandle[] services;
27 public ServiceHandles()
31 public ServiceHandles(ext.vamsas.ServiceHandle[] services)
33 this.services = services;
37 * Gets the services value for this ServiceHandles.
41 public ext.vamsas.ServiceHandle[] getServices()
47 * Sets the services value for this ServiceHandles.
51 public void setServices(ext.vamsas.ServiceHandle[] services)
53 this.services = services;
56 private java.lang.Object __equalsCalc = null;
58 public synchronized boolean equals(java.lang.Object obj)
64 if (!(obj instanceof ServiceHandles))
68 ServiceHandles other = (ServiceHandles) obj;
73 if (__equalsCalc != null)
75 return (__equalsCalc == obj);
79 _equals = true && ((this.services == null && other.getServices() == null) || (this.services != null && java.util.Arrays
80 .equals(this.services, other.getServices())));
85 private boolean __hashCodeCalc = false;
87 public synchronized int hashCode()
93 __hashCodeCalc = true;
95 if (getServices() != null)
97 for (int i = 0; i < java.lang.reflect.Array.getLength(getServices()); i++)
99 java.lang.Object obj = java.lang.reflect.Array
100 .get(getServices(), i);
101 if (obj != null && !obj.getClass().isArray())
103 _hashCode += obj.hashCode();
107 __hashCodeCalc = false;
112 private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
113 ServiceHandles.class, true);
117 typeDesc.setXmlType(new javax.xml.namespace.QName(
118 "registry.objects.vamsas", "ServiceHandles"));
119 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
120 elemField.setFieldName("services");
121 elemField.setXmlName(new javax.xml.namespace.QName("", "services"));
122 elemField.setXmlType(new javax.xml.namespace.QName(
123 "registry.objects.vamsas", "ServiceHandle"));
124 typeDesc.addFieldDesc(elemField);
128 * Return type metadata object
130 public static org.apache.axis.description.TypeDesc getTypeDesc()
136 * Get Custom Serializer
138 public static org.apache.axis.encoding.Serializer getSerializer(
139 java.lang.String mechType, java.lang.Class _javaType,
140 javax.xml.namespace.QName _xmlType)
142 return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
147 * Get Custom Deserializer
149 public static org.apache.axis.encoding.Deserializer getDeserializer(
150 java.lang.String mechType, java.lang.Class _javaType,
151 javax.xml.namespace.QName _xmlType)
153 return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,