update author list in license for (JAL-826)
[jalview.git] / src / ext / vamsas / ServiceHandle.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
3  * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
4  * 
5  * This file is part of Jalview.
6  * 
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.
10  * 
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.
15  * 
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  */
18 package ext.vamsas;
19
20 public class ServiceHandle implements java.io.Serializable
21 {
22   private java.lang.String abstractName;
23
24   private java.lang.String description;
25
26   private java.lang.String endpointURL;
27
28   private java.lang.String name;
29
30   public ServiceHandle()
31   {
32   }
33
34   public ServiceHandle(java.lang.String abstractName,
35           java.lang.String description, java.lang.String endpointURL,
36           java.lang.String name)
37   {
38     this.abstractName = abstractName;
39     this.description = description;
40     this.endpointURL = endpointURL;
41     this.name = name;
42   }
43
44   /**
45    * Gets the abstractName value for this ServiceHandle.
46    * 
47    * @return abstractName
48    */
49   public java.lang.String getAbstractName()
50   {
51     return abstractName;
52   }
53
54   /**
55    * Sets the abstractName value for this ServiceHandle.
56    * 
57    * @param abstractName
58    */
59   public void setAbstractName(java.lang.String abstractName)
60   {
61     this.abstractName = abstractName;
62   }
63
64   /**
65    * Gets the description value for this ServiceHandle.
66    * 
67    * @return description
68    */
69   public java.lang.String getDescription()
70   {
71     return description;
72   }
73
74   /**
75    * Sets the description value for this ServiceHandle.
76    * 
77    * @param description
78    */
79   public void setDescription(java.lang.String description)
80   {
81     this.description = description;
82   }
83
84   /**
85    * Gets the endpointURL value for this ServiceHandle.
86    * 
87    * @return endpointURL
88    */
89   public java.lang.String getEndpointURL()
90   {
91     return endpointURL;
92   }
93
94   /**
95    * Sets the endpointURL value for this ServiceHandle.
96    * 
97    * @param endpointURL
98    */
99   public void setEndpointURL(java.lang.String endpointURL)
100   {
101     this.endpointURL = endpointURL;
102   }
103
104   /**
105    * Gets the name value for this ServiceHandle.
106    * 
107    * @return name
108    */
109   public java.lang.String getName()
110   {
111     return name;
112   }
113
114   /**
115    * Sets the name value for this ServiceHandle.
116    * 
117    * @param name
118    */
119   public void setName(java.lang.String name)
120   {
121     this.name = name;
122   }
123
124   private java.lang.Object __equalsCalc = null;
125
126   public synchronized boolean equals(java.lang.Object obj)
127   {
128     if (!(obj instanceof ServiceHandle))
129     {
130       return false;
131     }
132     ServiceHandle other = (ServiceHandle) obj;
133     if (obj == null)
134     {
135       return false;
136     }
137     if (this == obj)
138     {
139       return true;
140     }
141     if (__equalsCalc != null)
142     {
143       return (__equalsCalc == obj);
144     }
145     __equalsCalc = obj;
146     boolean _equals;
147     _equals = true
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())));
156     __equalsCalc = null;
157     return _equals;
158   }
159
160   private boolean __hashCodeCalc = false;
161
162   public synchronized int hashCode()
163   {
164     if (__hashCodeCalc)
165     {
166       return 0;
167     }
168     __hashCodeCalc = true;
169     int _hashCode = 1;
170     if (getAbstractName() != null)
171     {
172       _hashCode += getAbstractName().hashCode();
173     }
174     if (getDescription() != null)
175     {
176       _hashCode += getDescription().hashCode();
177     }
178     if (getEndpointURL() != null)
179     {
180       _hashCode += getEndpointURL().hashCode();
181     }
182     if (getName() != null)
183     {
184       _hashCode += getName().hashCode();
185     }
186     __hashCodeCalc = false;
187     return _hashCode;
188   }
189
190   // Type metadata
191   private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
192           ServiceHandle.class, true);
193
194   static
195   {
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);
222   }
223
224   /**
225    * Return type metadata object
226    */
227   public static org.apache.axis.description.TypeDesc getTypeDesc()
228   {
229     return typeDesc;
230   }
231
232   /**
233    * Get Custom Serializer
234    */
235   public static org.apache.axis.encoding.Serializer getSerializer(
236           java.lang.String mechType, java.lang.Class _javaType,
237           javax.xml.namespace.QName _xmlType)
238   {
239     return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
240             _xmlType, typeDesc);
241   }
242
243   /**
244    * Get Custom Deserializer
245    */
246   public static org.apache.axis.encoding.Deserializer getDeserializer(
247           java.lang.String mechType, java.lang.Class _javaType,
248           javax.xml.namespace.QName _xmlType)
249   {
250     return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,
251             _xmlType, typeDesc);
252   }
253
254 }