2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4)
3 * Copyright (C) 2008 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
22 implements java.io.Serializable
24 private ext.vamsas.ServiceHandle[] services;
26 public ServiceHandles()
30 public ServiceHandles(
31 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;
57 public synchronized boolean equals(java.lang.Object obj)
59 if (! (obj instanceof ServiceHandles))
63 ServiceHandles other = (ServiceHandles) obj;
72 if (__equalsCalc != null)
74 return (__equalsCalc == obj);
79 ( (this.services == null && other.getServices() == null) ||
80 (this.services != null &&
81 java.util.Arrays.equals(this.services, other.getServices())));
86 private boolean __hashCodeCalc = false;
87 public synchronized int hashCode()
93 __hashCodeCalc = true;
95 if (getServices() != null)
98 i < java.lang.reflect.Array.getLength(getServices());
101 java.lang.Object obj = java.lang.reflect.Array.get(getServices(), i);
103 !obj.getClass().isArray())
105 _hashCode += obj.hashCode();
109 __hashCodeCalc = false;
114 private static org.apache.axis.description.TypeDesc typeDesc =
115 new org.apache.axis.description.TypeDesc(ServiceHandles.class, true);
119 typeDesc.setXmlType(new javax.xml.namespace.QName("registry.objects.vamsas",
121 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.
122 description.ElementDesc();
123 elemField.setFieldName("services");
124 elemField.setXmlName(new javax.xml.namespace.QName("", "services"));
125 elemField.setXmlType(new javax.xml.namespace.QName(
126 "registry.objects.vamsas", "ServiceHandle"));
127 typeDesc.addFieldDesc(elemField);
131 * Return type metadata object
133 public static org.apache.axis.description.TypeDesc getTypeDesc()
139 * Get Custom Serializer
141 public static org.apache.axis.encoding.Serializer getSerializer(
142 java.lang.String mechType,
143 java.lang.Class _javaType,
144 javax.xml.namespace.QName _xmlType)
147 new org.apache.axis.encoding.ser.BeanSerializer(
148 _javaType, _xmlType, typeDesc);
152 * Get Custom Deserializer
154 public static org.apache.axis.encoding.Deserializer getDeserializer(
155 java.lang.String mechType,
156 java.lang.Class _javaType,
157 javax.xml.namespace.QName _xmlType)
160 new org.apache.axis.encoding.ser.BeanDeserializer(
161 _javaType, _xmlType, typeDesc);