2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
3 * Copyright (C) 2014 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 of the License, or (at your option) any later version.
11 * Jalview is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty
13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
17 * The Jalview Authors are detailed in the 'AUTHORS' file.
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,