JAL-3253 preliminary static fixes for JavaScript
[jalview.git] / src / ext / vamsas / ServiceHandle.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3  * Copyright (C) $$Year-Rel$$ 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
10  * of the License, or (at your option) any later version.
11  *  
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.
16  * 
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.
20  */
21 package ext.vamsas;
22
23 public class ServiceHandle implements java.io.Serializable
24 {
25   private java.lang.String abstractName;
26
27   private java.lang.String description;
28
29   private java.lang.String endpointURL;
30
31   private java.lang.String name;
32
33   public ServiceHandle()
34   {
35   }
36
37   public ServiceHandle(java.lang.String abstractName,
38           java.lang.String description, java.lang.String endpointURL,
39           java.lang.String name)
40   {
41     this.abstractName = abstractName;
42     this.description = description;
43     this.endpointURL = endpointURL;
44     this.name = name;
45   }
46
47   /**
48    * Gets the abstractName value for this ServiceHandle.
49    * 
50    * @return abstractName
51    */
52   public java.lang.String getAbstractName()
53   {
54     return abstractName;
55   }
56
57   /**
58    * Sets the abstractName value for this ServiceHandle.
59    * 
60    * @param abstractName
61    */
62   public void setAbstractName(java.lang.String abstractName)
63   {
64     this.abstractName = abstractName;
65   }
66
67   /**
68    * Gets the description value for this ServiceHandle.
69    * 
70    * @return description
71    */
72   public java.lang.String getDescription()
73   {
74     return description;
75   }
76
77   /**
78    * Sets the description value for this ServiceHandle.
79    * 
80    * @param description
81    */
82   public void setDescription(java.lang.String description)
83   {
84     this.description = description;
85   }
86
87   /**
88    * Gets the endpointURL value for this ServiceHandle.
89    * 
90    * @return endpointURL
91    */
92   public java.lang.String getEndpointURL()
93   {
94     return endpointURL;
95   }
96
97   /**
98    * Sets the endpointURL value for this ServiceHandle.
99    * 
100    * @param endpointURL
101    */
102   public void setEndpointURL(java.lang.String endpointURL)
103   {
104     this.endpointURL = endpointURL;
105   }
106
107   /**
108    * Gets the name value for this ServiceHandle.
109    * 
110    * @return name
111    */
112   public java.lang.String getName()
113   {
114     return name;
115   }
116
117   /**
118    * Sets the name value for this ServiceHandle.
119    * 
120    * @param name
121    */
122   public void setName(java.lang.String name)
123   {
124     this.name = name;
125   }
126
127   private java.lang.Object __equalsCalc = null;
128
129   @Override
130   public synchronized boolean equals(java.lang.Object obj)
131   {
132     if (obj == null)
133     {
134       return false;
135     }
136     if (!(obj instanceof ServiceHandle))
137     {
138       return false;
139     }
140     ServiceHandle other = (ServiceHandle) obj;
141     if (this == obj)
142     {
143       return true;
144     }
145     if (__equalsCalc != null)
146     {
147       return (__equalsCalc == obj);
148     }
149     __equalsCalc = obj;
150     boolean _equals;
151     _equals = true
152             && ((this.abstractName == null && other.getAbstractName() == null) || (this.abstractName != null && this.abstractName
153                     .equals(other.getAbstractName())))
154             && ((this.description == null && other.getDescription() == null) || (this.description != null && this.description
155                     .equals(other.getDescription())))
156             && ((this.endpointURL == null && other.getEndpointURL() == null) || (this.endpointURL != null && this.endpointURL
157                     .equals(other.getEndpointURL())))
158             && ((this.name == null && other.getName() == null) || (this.name != null && this.name
159                     .equals(other.getName())));
160     __equalsCalc = null;
161     return _equals;
162   }
163
164   private boolean __hashCodeCalc = false;
165
166   @Override
167   public synchronized int hashCode()
168   {
169     if (__hashCodeCalc)
170     {
171       return 0;
172     }
173     __hashCodeCalc = true;
174     int _hashCode = 1;
175     if (getAbstractName() != null)
176     {
177       _hashCode += getAbstractName().hashCode();
178     }
179     if (getDescription() != null)
180     {
181       _hashCode += getDescription().hashCode();
182     }
183     if (getEndpointURL() != null)
184     {
185       _hashCode += getEndpointURL().hashCode();
186     }
187     if (getName() != null)
188     {
189       _hashCode += getName().hashCode();
190     }
191     __hashCodeCalc = false;
192     return _hashCode;
193   }
194
195   // Type metadata
196   private static final org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
197           ServiceHandle.class, true);
198
199   static
200   {
201     typeDesc.setXmlType(new javax.xml.namespace.QName(
202             "registry.objects.vamsas", "ServiceHandle"));
203     org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
204     elemField.setFieldName("abstractName");
205     elemField.setXmlName(new javax.xml.namespace.QName("", "abstractName"));
206     elemField.setXmlType(new javax.xml.namespace.QName(
207             "http://schemas.xmlsoap.org/soap/encoding/", "string"));
208     typeDesc.addFieldDesc(elemField);
209     elemField = new org.apache.axis.description.ElementDesc();
210     elemField.setFieldName("description");
211     elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
212     elemField.setXmlType(new javax.xml.namespace.QName(
213             "http://schemas.xmlsoap.org/soap/encoding/", "string"));
214     typeDesc.addFieldDesc(elemField);
215     elemField = new org.apache.axis.description.ElementDesc();
216     elemField.setFieldName("endpointURL");
217     elemField.setXmlName(new javax.xml.namespace.QName("", "endpointURL"));
218     elemField.setXmlType(new javax.xml.namespace.QName(
219             "http://schemas.xmlsoap.org/soap/encoding/", "string"));
220     typeDesc.addFieldDesc(elemField);
221     elemField = new org.apache.axis.description.ElementDesc();
222     elemField.setFieldName("name");
223     elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
224     elemField.setXmlType(new javax.xml.namespace.QName(
225             "http://schemas.xmlsoap.org/soap/encoding/", "string"));
226     typeDesc.addFieldDesc(elemField);
227   }
228
229   /**
230    * Return type metadata object
231    */
232   public static org.apache.axis.description.TypeDesc getTypeDesc()
233   {
234     return typeDesc;
235   }
236
237   /**
238    * Get Custom Serializer
239    */
240   public static org.apache.axis.encoding.Serializer getSerializer(
241           java.lang.String mechType, java.lang.Class _javaType,
242           javax.xml.namespace.QName _xmlType)
243   {
244     return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
245             _xmlType, typeDesc);
246   }
247
248   /**
249    * Get Custom Deserializer
250    */
251   public static org.apache.axis.encoding.Deserializer getDeserializer(
252           java.lang.String mechType, java.lang.Class _javaType,
253           javax.xml.namespace.QName _xmlType)
254   {
255     return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,
256             _xmlType, typeDesc);
257   }
258
259 }