2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8)
3 * Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle
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/>.
20 public class ServiceHandle implements java.io.Serializable
22 private java.lang.String abstractName;
24 private java.lang.String description;
26 private java.lang.String endpointURL;
28 private java.lang.String name;
30 public ServiceHandle()
34 public ServiceHandle(java.lang.String abstractName,
35 java.lang.String description, java.lang.String endpointURL,
36 java.lang.String name)
38 this.abstractName = abstractName;
39 this.description = description;
40 this.endpointURL = endpointURL;
45 * Gets the abstractName value for this ServiceHandle.
47 * @return abstractName
49 public java.lang.String getAbstractName()
55 * Sets the abstractName value for this ServiceHandle.
59 public void setAbstractName(java.lang.String abstractName)
61 this.abstractName = abstractName;
65 * Gets the description value for this ServiceHandle.
69 public java.lang.String getDescription()
75 * Sets the description value for this ServiceHandle.
79 public void setDescription(java.lang.String description)
81 this.description = description;
85 * Gets the endpointURL value for this ServiceHandle.
89 public java.lang.String getEndpointURL()
95 * Sets the endpointURL value for this ServiceHandle.
99 public void setEndpointURL(java.lang.String endpointURL)
101 this.endpointURL = endpointURL;
105 * Gets the name value for this ServiceHandle.
109 public java.lang.String getName()
115 * Sets the name value for this ServiceHandle.
119 public void setName(java.lang.String name)
124 private java.lang.Object __equalsCalc = null;
126 public synchronized boolean equals(java.lang.Object obj)
128 if (!(obj instanceof ServiceHandle))
132 ServiceHandle other = (ServiceHandle) obj;
141 if (__equalsCalc != null)
143 return (__equalsCalc == obj);
148 && ((this.abstractName == null && other.getAbstractName() == null) || (this.abstractName != null && this.abstractName
149 .equals(other.getAbstractName())))
150 && ((this.description == null && other.getDescription() == null) || (this.description != null && this.description
151 .equals(other.getDescription())))
152 && ((this.endpointURL == null && other.getEndpointURL() == null) || (this.endpointURL != null && this.endpointURL
153 .equals(other.getEndpointURL())))
154 && ((this.name == null && other.getName() == null) || (this.name != null && this.name
155 .equals(other.getName())));
160 private boolean __hashCodeCalc = false;
162 public synchronized int hashCode()
168 __hashCodeCalc = true;
170 if (getAbstractName() != null)
172 _hashCode += getAbstractName().hashCode();
174 if (getDescription() != null)
176 _hashCode += getDescription().hashCode();
178 if (getEndpointURL() != null)
180 _hashCode += getEndpointURL().hashCode();
182 if (getName() != null)
184 _hashCode += getName().hashCode();
186 __hashCodeCalc = false;
191 private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
192 ServiceHandle.class, true);
196 typeDesc.setXmlType(new javax.xml.namespace.QName(
197 "registry.objects.vamsas", "ServiceHandle"));
198 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
199 elemField.setFieldName("abstractName");
200 elemField.setXmlName(new javax.xml.namespace.QName("", "abstractName"));
201 elemField.setXmlType(new javax.xml.namespace.QName(
202 "http://schemas.xmlsoap.org/soap/encoding/", "string"));
203 typeDesc.addFieldDesc(elemField);
204 elemField = new org.apache.axis.description.ElementDesc();
205 elemField.setFieldName("description");
206 elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
207 elemField.setXmlType(new javax.xml.namespace.QName(
208 "http://schemas.xmlsoap.org/soap/encoding/", "string"));
209 typeDesc.addFieldDesc(elemField);
210 elemField = new org.apache.axis.description.ElementDesc();
211 elemField.setFieldName("endpointURL");
212 elemField.setXmlName(new javax.xml.namespace.QName("", "endpointURL"));
213 elemField.setXmlType(new javax.xml.namespace.QName(
214 "http://schemas.xmlsoap.org/soap/encoding/", "string"));
215 typeDesc.addFieldDesc(elemField);
216 elemField = new org.apache.axis.description.ElementDesc();
217 elemField.setFieldName("name");
218 elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
219 elemField.setXmlType(new javax.xml.namespace.QName(
220 "http://schemas.xmlsoap.org/soap/encoding/", "string"));
221 typeDesc.addFieldDesc(elemField);
225 * Return type metadata object
227 public static org.apache.axis.description.TypeDesc getTypeDesc()
233 * Get Custom Serializer
235 public static org.apache.axis.encoding.Serializer getSerializer(
236 java.lang.String mechType, java.lang.Class _javaType,
237 javax.xml.namespace.QName _xmlType)
239 return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
244 * Get Custom Deserializer
246 public static org.apache.axis.encoding.Deserializer getDeserializer(
247 java.lang.String mechType, java.lang.Class _javaType,
248 javax.xml.namespace.QName _xmlType)
250 return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,