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