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