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 ServiceHandle
22 implements java.io.Serializable
24 private java.lang.String abstractName;
25 private java.lang.String description;
26 private java.lang.String endpointURL;
27 private java.lang.String name;
29 public ServiceHandle()
34 java.lang.String abstractName,
35 java.lang.String description,
36 java.lang.String endpointURL,
37 java.lang.String name)
39 this.abstractName = abstractName;
40 this.description = description;
41 this.endpointURL = endpointURL;
46 * Gets the abstractName value for this ServiceHandle.
48 * @return abstractName
50 public java.lang.String getAbstractName()
56 * Sets the abstractName value for this ServiceHandle.
60 public void setAbstractName(java.lang.String abstractName)
62 this.abstractName = abstractName;
66 * Gets the description value for this ServiceHandle.
70 public java.lang.String getDescription()
76 * Sets the description value for this ServiceHandle.
80 public void setDescription(java.lang.String description)
82 this.description = description;
86 * Gets the endpointURL value for this ServiceHandle.
90 public java.lang.String getEndpointURL()
96 * Sets the endpointURL value for this ServiceHandle.
100 public void setEndpointURL(java.lang.String endpointURL)
102 this.endpointURL = endpointURL;
106 * Gets the name value for this ServiceHandle.
110 public java.lang.String getName()
116 * Sets the name value for this ServiceHandle.
120 public void setName(java.lang.String name)
125 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) ||
149 (this.abstractName != null &&
150 this.abstractName.equals(other.getAbstractName()))) &&
151 ( (this.description == null && other.getDescription() == null) ||
152 (this.description != null &&
153 this.description.equals(other.getDescription()))) &&
154 ( (this.endpointURL == null && other.getEndpointURL() == null) ||
155 (this.endpointURL != null &&
156 this.endpointURL.equals(other.getEndpointURL()))) &&
157 ( (this.name == null && other.getName() == null) ||
158 (this.name != null &&
159 this.name.equals(other.getName())));
164 private boolean __hashCodeCalc = false;
165 public synchronized int hashCode()
171 __hashCodeCalc = true;
173 if (getAbstractName() != null)
175 _hashCode += getAbstractName().hashCode();
177 if (getDescription() != null)
179 _hashCode += getDescription().hashCode();
181 if (getEndpointURL() != null)
183 _hashCode += getEndpointURL().hashCode();
185 if (getName() != null)
187 _hashCode += getName().hashCode();
189 __hashCodeCalc = false;
194 private static org.apache.axis.description.TypeDesc typeDesc =
195 new org.apache.axis.description.TypeDesc(ServiceHandle.class, true);
199 typeDesc.setXmlType(new javax.xml.namespace.QName("registry.objects.vamsas",
201 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.
202 description.ElementDesc();
203 elemField.setFieldName("abstractName");
204 elemField.setXmlName(new javax.xml.namespace.QName("", "abstractName"));
205 elemField.setXmlType(new javax.xml.namespace.QName(
206 "http://schemas.xmlsoap.org/soap/encoding/", "string"));
207 typeDesc.addFieldDesc(elemField);
208 elemField = new org.apache.axis.description.ElementDesc();
209 elemField.setFieldName("description");
210 elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
211 elemField.setXmlType(new javax.xml.namespace.QName(
212 "http://schemas.xmlsoap.org/soap/encoding/", "string"));
213 typeDesc.addFieldDesc(elemField);
214 elemField = new org.apache.axis.description.ElementDesc();
215 elemField.setFieldName("endpointURL");
216 elemField.setXmlName(new javax.xml.namespace.QName("", "endpointURL"));
217 elemField.setXmlType(new javax.xml.namespace.QName(
218 "http://schemas.xmlsoap.org/soap/encoding/", "string"));
219 typeDesc.addFieldDesc(elemField);
220 elemField = new org.apache.axis.description.ElementDesc();
221 elemField.setFieldName("name");
222 elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
223 elemField.setXmlType(new javax.xml.namespace.QName(
224 "http://schemas.xmlsoap.org/soap/encoding/", "string"));
225 typeDesc.addFieldDesc(elemField);
229 * Return type metadata object
231 public static org.apache.axis.description.TypeDesc getTypeDesc()
237 * Get Custom Serializer
239 public static org.apache.axis.encoding.Serializer getSerializer(
240 java.lang.String mechType,
241 java.lang.Class _javaType,
242 javax.xml.namespace.QName _xmlType)
245 new org.apache.axis.encoding.ser.BeanSerializer(
246 _javaType, _xmlType, typeDesc);
250 * Get Custom Deserializer
252 public static org.apache.axis.encoding.Deserializer getDeserializer(
253 java.lang.String mechType,
254 java.lang.Class _javaType,
255 javax.xml.namespace.QName _xmlType)
258 new org.apache.axis.encoding.ser.BeanDeserializer(
259 _javaType, _xmlType, typeDesc);