Clover icon

jalviewX

  1. Project Clover database Wed Oct 31 2018 15:13:58 GMT
  2. Package ext.vamsas

File ServiceHandles.java

 

Coverage histogram

../../img/srcFileCovDistChart0.png
56% of files have more coverage

Code metrics

16
37
10
1
157
102
19
0.51
3.7
10
1.9

Classes

Class Line # Actions
ServiceHandles 23 37 19 63
0.00%
 

Contributing tests

No tests hitting this source file were found.

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 ServiceHandles implements java.io.Serializable
24    {
25    private ext.vamsas.ServiceHandle[] services;
26   
 
27  0 toggle public ServiceHandles()
28    {
29    }
30   
 
31  0 toggle public ServiceHandles(ext.vamsas.ServiceHandle[] services)
32    {
33  0 this.services = services;
34    }
35   
36    /**
37    * Gets the services value for this ServiceHandles.
38    *
39    * @return services
40    */
 
41  0 toggle public ext.vamsas.ServiceHandle[] getServices()
42    {
43  0 return services;
44    }
45   
46    /**
47    * Sets the services value for this ServiceHandles.
48    *
49    * @param services
50    */
 
51  0 toggle public void setServices(ext.vamsas.ServiceHandle[] services)
52    {
53  0 this.services = services;
54    }
55   
56    private java.lang.Object __equalsCalc = null;
57   
 
58  0 toggle public synchronized boolean equals(java.lang.Object obj)
59    {
60  0 if (obj == null)
61    {
62  0 return false;
63    }
64  0 if (!(obj instanceof ServiceHandles))
65    {
66  0 return false;
67    }
68  0 ServiceHandles other = (ServiceHandles) obj;
69  0 if (this == obj)
70    {
71  0 return true;
72    }
73  0 if (__equalsCalc != null)
74    {
75  0 return (__equalsCalc == obj);
76    }
77  0 __equalsCalc = obj;
78  0 boolean _equals;
79  0 _equals = true && ((this.services == null && other.getServices() == null) || (this.services != null && java.util.Arrays
80    .equals(this.services, other.getServices())));
81  0 __equalsCalc = null;
82  0 return _equals;
83    }
84   
85    private boolean __hashCodeCalc = false;
86   
 
87  0 toggle public synchronized int hashCode()
88    {
89  0 if (__hashCodeCalc)
90    {
91  0 return 0;
92    }
93  0 __hashCodeCalc = true;
94  0 int _hashCode = 1;
95  0 if (getServices() != null)
96    {
97  0 for (int i = 0; i < java.lang.reflect.Array.getLength(getServices()); i++)
98    {
99  0 java.lang.Object obj = java.lang.reflect.Array
100    .get(getServices(), i);
101  0 if (obj != null && !obj.getClass().isArray())
102    {
103  0 _hashCode += obj.hashCode();
104    }
105    }
106    }
107  0 __hashCodeCalc = false;
108  0 return _hashCode;
109    }
110   
111    // Type metadata
112    private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
113    ServiceHandles.class, true);
114   
 
115  0 toggle static
116    {
117  0 typeDesc.setXmlType(new javax.xml.namespace.QName(
118    "registry.objects.vamsas", "ServiceHandles"));
119  0 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
120  0 elemField.setFieldName("services");
121  0 elemField.setXmlName(new javax.xml.namespace.QName("", "services"));
122  0 elemField.setXmlType(new javax.xml.namespace.QName(
123    "registry.objects.vamsas", "ServiceHandle"));
124  0 typeDesc.addFieldDesc(elemField);
125    }
126   
127    /**
128    * Return type metadata object
129    */
 
130  0 toggle public static org.apache.axis.description.TypeDesc getTypeDesc()
131    {
132  0 return typeDesc;
133    }
134   
135    /**
136    * Get Custom Serializer
137    */
 
138  0 toggle public static org.apache.axis.encoding.Serializer getSerializer(
139    java.lang.String mechType, java.lang.Class _javaType,
140    javax.xml.namespace.QName _xmlType)
141    {
142  0 return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
143    _xmlType, typeDesc);
144    }
145   
146    /**
147    * Get Custom Deserializer
148    */
 
149  0 toggle public static org.apache.axis.encoding.Deserializer getDeserializer(
150    java.lang.String mechType, java.lang.Class _javaType,
151    javax.xml.namespace.QName _xmlType)
152    {
153  0 return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,
154    _xmlType, typeDesc);
155    }
156   
157    }