2 * Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1)
3 * Copyright (C) 2009 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 implements java.io.Serializable
23 private java.lang.String abstractName;
25 private java.lang.String description;
27 private java.lang.String endpointURL;
29 private java.lang.String name;
31 public ServiceHandle()
35 public ServiceHandle(java.lang.String abstractName,
36 java.lang.String description, 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;
127 public synchronized boolean equals(java.lang.Object obj)
129 if (!(obj instanceof ServiceHandle))
133 ServiceHandle other = (ServiceHandle) obj;
142 if (__equalsCalc != null)
144 return (__equalsCalc == obj);
149 && ((this.abstractName == null && other.getAbstractName() == null) || (this.abstractName != null && this.abstractName
150 .equals(other.getAbstractName())))
151 && ((this.description == null && other.getDescription() == null) || (this.description != null && this.description
152 .equals(other.getDescription())))
153 && ((this.endpointURL == null && other.getEndpointURL() == null) || (this.endpointURL != null && this.endpointURL
154 .equals(other.getEndpointURL())))
155 && ((this.name == null && other.getName() == null) || (this.name != null && this.name
156 .equals(other.getName())));
161 private boolean __hashCodeCalc = false;
163 public synchronized int hashCode()
169 __hashCodeCalc = true;
171 if (getAbstractName() != null)
173 _hashCode += getAbstractName().hashCode();
175 if (getDescription() != null)
177 _hashCode += getDescription().hashCode();
179 if (getEndpointURL() != null)
181 _hashCode += getEndpointURL().hashCode();
183 if (getName() != null)
185 _hashCode += getName().hashCode();
187 __hashCodeCalc = false;
192 private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
193 ServiceHandle.class, true);
197 typeDesc.setXmlType(new javax.xml.namespace.QName(
198 "registry.objects.vamsas", "ServiceHandle"));
199 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
200 elemField.setFieldName("abstractName");
201 elemField.setXmlName(new javax.xml.namespace.QName("", "abstractName"));
202 elemField.setXmlType(new javax.xml.namespace.QName(
203 "http://schemas.xmlsoap.org/soap/encoding/", "string"));
204 typeDesc.addFieldDesc(elemField);
205 elemField = new org.apache.axis.description.ElementDesc();
206 elemField.setFieldName("description");
207 elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
208 elemField.setXmlType(new javax.xml.namespace.QName(
209 "http://schemas.xmlsoap.org/soap/encoding/", "string"));
210 typeDesc.addFieldDesc(elemField);
211 elemField = new org.apache.axis.description.ElementDesc();
212 elemField.setFieldName("endpointURL");
213 elemField.setXmlName(new javax.xml.namespace.QName("", "endpointURL"));
214 elemField.setXmlType(new javax.xml.namespace.QName(
215 "http://schemas.xmlsoap.org/soap/encoding/", "string"));
216 typeDesc.addFieldDesc(elemField);
217 elemField = new org.apache.axis.description.ElementDesc();
218 elemField.setFieldName("name");
219 elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
220 elemField.setXmlType(new javax.xml.namespace.QName(
221 "http://schemas.xmlsoap.org/soap/encoding/", "string"));
222 typeDesc.addFieldDesc(elemField);
226 * Return type metadata object
228 public static org.apache.axis.description.TypeDesc getTypeDesc()
234 * Get Custom Serializer
236 public static org.apache.axis.encoding.Serializer getSerializer(
237 java.lang.String mechType, java.lang.Class _javaType,
238 javax.xml.namespace.QName _xmlType)
240 return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
245 * Get Custom Deserializer
247 public static org.apache.axis.encoding.Deserializer getDeserializer(
248 java.lang.String mechType, java.lang.Class _javaType,
249 javax.xml.namespace.QName _xmlType)
251 return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,