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