2 * Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1)
3 * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
21 public class ServiceHandles implements java.io.Serializable
23 private ext.vamsas.ServiceHandle[] services;
25 public ServiceHandles()
29 public ServiceHandles(ext.vamsas.ServiceHandle[] services)
31 this.services = services;
35 * Gets the services value for this ServiceHandles.
39 public ext.vamsas.ServiceHandle[] getServices()
45 * Sets the services value for this ServiceHandles.
49 public void setServices(ext.vamsas.ServiceHandle[] services)
51 this.services = services;
54 private java.lang.Object __equalsCalc = null;
56 public synchronized boolean equals(java.lang.Object obj)
58 if (!(obj instanceof ServiceHandles))
62 ServiceHandles other = (ServiceHandles) obj;
71 if (__equalsCalc != null)
73 return (__equalsCalc == obj);
77 _equals = true && ((this.services == null && other.getServices() == null) || (this.services != null && java.util.Arrays
78 .equals(this.services, other.getServices())));
83 private boolean __hashCodeCalc = false;
85 public synchronized int hashCode()
91 __hashCodeCalc = true;
93 if (getServices() != null)
95 for (int i = 0; i < java.lang.reflect.Array.getLength(getServices()); i++)
97 java.lang.Object obj = java.lang.reflect.Array
98 .get(getServices(), i);
99 if (obj != null && !obj.getClass().isArray())
101 _hashCode += obj.hashCode();
105 __hashCodeCalc = false;
110 private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
111 ServiceHandles.class, true);
115 typeDesc.setXmlType(new javax.xml.namespace.QName(
116 "registry.objects.vamsas", "ServiceHandles"));
117 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
118 elemField.setFieldName("services");
119 elemField.setXmlName(new javax.xml.namespace.QName("", "services"));
120 elemField.setXmlType(new javax.xml.namespace.QName(
121 "registry.objects.vamsas", "ServiceHandle"));
122 typeDesc.addFieldDesc(elemField);
126 * Return type metadata object
128 public static org.apache.axis.description.TypeDesc getTypeDesc()
134 * Get Custom Serializer
136 public static org.apache.axis.encoding.Serializer getSerializer(
137 java.lang.String mechType, java.lang.Class _javaType,
138 javax.xml.namespace.QName _xmlType)
140 return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
145 * Get Custom Deserializer
147 public static org.apache.axis.encoding.Deserializer getDeserializer(
148 java.lang.String mechType, java.lang.Class _javaType,
149 javax.xml.namespace.QName _xmlType)
151 return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,