Clover icon

Coverage Report

  1. Project Clover database Mon Sep 2 2024 17:57:51 BST
  2. Package ext.vamsas

File ServiceHandle.java

 

Coverage histogram

../../img/srcFileCovDistChart6.png
37% of files have more coverage

Code metrics

18
64
16
1
262
168
25
0.39
4
16
1.56

Classes

Class Line # Actions
ServiceHandle 23 64 25
0.510204151%
 

Contributing tests

This file is covered by 181 tests. .

Source view

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