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 ServiceHandle implements java.io.Serializable
25 private java.lang.String abstractName;
27 private java.lang.String description;
29 private java.lang.String endpointURL;
31 private java.lang.String name;
33 public ServiceHandle()
37 public ServiceHandle(java.lang.String abstractName,
38 java.lang.String description, java.lang.String endpointURL,
39 java.lang.String name)
41 this.abstractName = abstractName;
42 this.description = description;
43 this.endpointURL = endpointURL;
48 * Gets the abstractName value for this ServiceHandle.
50 * @return abstractName
52 public java.lang.String getAbstractName()
58 * Sets the abstractName value for this ServiceHandle.
62 public void setAbstractName(java.lang.String abstractName)
64 this.abstractName = abstractName;
68 * Gets the description value for this ServiceHandle.
72 public java.lang.String getDescription()
78 * Sets the description value for this ServiceHandle.
82 public void setDescription(java.lang.String description)
84 this.description = description;
88 * Gets the endpointURL value for this ServiceHandle.
92 public java.lang.String getEndpointURL()
98 * Sets the endpointURL value for this ServiceHandle.
102 public void setEndpointURL(java.lang.String endpointURL)
104 this.endpointURL = endpointURL;
108 * Gets the name value for this ServiceHandle.
112 public java.lang.String getName()
118 * Sets the name value for this ServiceHandle.
122 public void setName(java.lang.String name)
127 private java.lang.Object __equalsCalc = null;
129 public synchronized boolean equals(java.lang.Object obj)
135 if (!(obj instanceof ServiceHandle))
139 ServiceHandle other = (ServiceHandle) obj;
144 if (__equalsCalc != null)
146 return (__equalsCalc == obj);
151 && ((this.abstractName == null
152 && other.getAbstractName() == null)
153 || (this.abstractName != null && this.abstractName
154 .equals(other.getAbstractName())))
155 && ((this.description == null && other.getDescription() == null)
156 || (this.description != null && this.description
157 .equals(other.getDescription())))
158 && ((this.endpointURL == null && other.getEndpointURL() == null)
159 || (this.endpointURL != null && this.endpointURL
160 .equals(other.getEndpointURL())))
161 && ((this.name == null && other.getName() == null)
162 || (this.name != null
163 && this.name.equals(other.getName())));
168 private boolean __hashCodeCalc = false;
170 public synchronized int hashCode()
176 __hashCodeCalc = true;
178 if (getAbstractName() != null)
180 _hashCode += getAbstractName().hashCode();
182 if (getDescription() != null)
184 _hashCode += getDescription().hashCode();
186 if (getEndpointURL() != null)
188 _hashCode += getEndpointURL().hashCode();
190 if (getName() != null)
192 _hashCode += getName().hashCode();
194 __hashCodeCalc = false;
199 private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
200 ServiceHandle.class, true);
204 typeDesc.setXmlType(new javax.xml.namespace.QName(
205 "registry.objects.vamsas", "ServiceHandle"));
206 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
207 elemField.setFieldName("abstractName");
208 elemField.setXmlName(new javax.xml.namespace.QName("", "abstractName"));
209 elemField.setXmlType(new javax.xml.namespace.QName(
210 "http://schemas.xmlsoap.org/soap/encoding/", "string"));
211 typeDesc.addFieldDesc(elemField);
212 elemField = new org.apache.axis.description.ElementDesc();
213 elemField.setFieldName("description");
214 elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
215 elemField.setXmlType(new javax.xml.namespace.QName(
216 "http://schemas.xmlsoap.org/soap/encoding/", "string"));
217 typeDesc.addFieldDesc(elemField);
218 elemField = new org.apache.axis.description.ElementDesc();
219 elemField.setFieldName("endpointURL");
220 elemField.setXmlName(new javax.xml.namespace.QName("", "endpointURL"));
221 elemField.setXmlType(new javax.xml.namespace.QName(
222 "http://schemas.xmlsoap.org/soap/encoding/", "string"));
223 typeDesc.addFieldDesc(elemField);
224 elemField = new org.apache.axis.description.ElementDesc();
225 elemField.setFieldName("name");
226 elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
227 elemField.setXmlType(new javax.xml.namespace.QName(
228 "http://schemas.xmlsoap.org/soap/encoding/", "string"));
229 typeDesc.addFieldDesc(elemField);
233 * Return type metadata object
235 public static org.apache.axis.description.TypeDesc getTypeDesc()
241 * Get Custom Serializer
243 public static org.apache.axis.encoding.Serializer getSerializer(
244 java.lang.String mechType, java.lang.Class _javaType,
245 javax.xml.namespace.QName _xmlType)
247 return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
252 * Get Custom Deserializer
254 public static org.apache.axis.encoding.Deserializer getDeserializer(
255 java.lang.String mechType, java.lang.Class _javaType,
256 javax.xml.namespace.QName _xmlType)
258 return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,