Clover icon

jalviewX

  1. Project Clover database Wed Oct 31 2018 15:13:58 GMT
  2. Package uk.ac.ebi.picr.model

File CrossReference.java

 

Coverage histogram

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

Code metrics

28
64
22
1
345
197
36
0.56
2.91
22
1.64

Classes

Class Line # Actions
CrossReference 23 64 36 114
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 uk.ac.ebi.picr.model;
22   
 
23    public class CrossReference implements java.io.Serializable
24    {
25    private java.lang.String accession;
26   
27    private java.lang.String accessionVersion;
28   
29    private java.lang.String databaseDescription;
30   
31    private java.lang.String databaseName;
32   
33    private java.util.Calendar dateAdded;
34   
35    private java.util.Calendar dateDeleted;
36   
37    private boolean deleted;
38   
39    private java.lang.String gi;
40   
41    private java.lang.String taxonId;
42   
 
43  0 toggle public CrossReference()
44    {
45    }
46   
 
47  0 toggle public CrossReference(java.lang.String accession,
48    java.lang.String accessionVersion,
49    java.lang.String databaseDescription,
50    java.lang.String databaseName, java.util.Calendar dateAdded,
51    java.util.Calendar dateDeleted, boolean deleted,
52    java.lang.String gi, java.lang.String taxonId)
53    {
54  0 this.accession = accession;
55  0 this.accessionVersion = accessionVersion;
56  0 this.databaseDescription = databaseDescription;
57  0 this.databaseName = databaseName;
58  0 this.dateAdded = dateAdded;
59  0 this.dateDeleted = dateDeleted;
60  0 this.deleted = deleted;
61  0 this.gi = gi;
62  0 this.taxonId = taxonId;
63    }
64   
65    /**
66    * Gets the accession value for this CrossReference.
67    *
68    * @return accession
69    */
 
70  0 toggle public java.lang.String getAccession()
71    {
72  0 return accession;
73    }
74   
75    /**
76    * Sets the accession value for this CrossReference.
77    *
78    * @param accession
79    */
 
80  0 toggle public void setAccession(java.lang.String accession)
81    {
82  0 this.accession = accession;
83    }
84   
85    /**
86    * Gets the accessionVersion value for this CrossReference.
87    *
88    * @return accessionVersion
89    */
 
90  0 toggle public java.lang.String getAccessionVersion()
91    {
92  0 return accessionVersion;
93    }
94   
95    /**
96    * Sets the accessionVersion value for this CrossReference.
97    *
98    * @param accessionVersion
99    */
 
100  0 toggle public void setAccessionVersion(java.lang.String accessionVersion)
101    {
102  0 this.accessionVersion = accessionVersion;
103    }
104   
105    /**
106    * Gets the databaseDescription value for this CrossReference.
107    *
108    * @return databaseDescription
109    */
 
110  0 toggle public java.lang.String getDatabaseDescription()
111    {
112  0 return databaseDescription;
113    }
114   
115    /**
116    * Sets the databaseDescription value for this CrossReference.
117    *
118    * @param databaseDescription
119    */
 
120  0 toggle public void setDatabaseDescription(java.lang.String databaseDescription)
121    {
122  0 this.databaseDescription = databaseDescription;
123    }
124   
125    /**
126    * Gets the databaseName value for this CrossReference.
127    *
128    * @return databaseName
129    */
 
130  0 toggle public java.lang.String getDatabaseName()
131    {
132  0 return databaseName;
133    }
134   
135    /**
136    * Sets the databaseName value for this CrossReference.
137    *
138    * @param databaseName
139    */
 
140  0 toggle public void setDatabaseName(java.lang.String databaseName)
141    {
142  0 this.databaseName = databaseName;
143    }
144   
145    /**
146    * Gets the dateAdded value for this CrossReference.
147    *
148    * @return dateAdded
149    */
 
150  0 toggle public java.util.Calendar getDateAdded()
151    {
152  0 return dateAdded;
153    }
154   
155    /**
156    * Sets the dateAdded value for this CrossReference.
157    *
158    * @param dateAdded
159    */
 
160  0 toggle public void setDateAdded(java.util.Calendar dateAdded)
161    {
162  0 this.dateAdded = dateAdded;
163    }
164   
165    /**
166    * Gets the dateDeleted value for this CrossReference.
167    *
168    * @return dateDeleted
169    */
 
170  0 toggle public java.util.Calendar getDateDeleted()
171    {
172  0 return dateDeleted;
173    }
174   
175    /**
176    * Sets the dateDeleted value for this CrossReference.
177    *
178    * @param dateDeleted
179    */
 
180  0 toggle public void setDateDeleted(java.util.Calendar dateDeleted)
181    {
182  0 this.dateDeleted = dateDeleted;
183    }
184   
185    /**
186    * Gets the deleted value for this CrossReference.
187    *
188    * @return deleted
189    */
 
190  0 toggle public boolean isDeleted()
191    {
192  0 return deleted;
193    }
194   
195    /**
196    * Sets the deleted value for this CrossReference.
197    *
198    * @param deleted
199    */
 
200  0 toggle public void setDeleted(boolean deleted)
201    {
202  0 this.deleted = deleted;
203    }
204   
205    /**
206    * Gets the gi value for this CrossReference.
207    *
208    * @return gi
209    */
 
210  0 toggle public java.lang.String getGi()
211    {
212  0 return gi;
213    }
214   
215    /**
216    * Sets the gi value for this CrossReference.
217    *
218    * @param gi
219    */
 
220  0 toggle public void setGi(java.lang.String gi)
221    {
222  0 this.gi = gi;
223    }
224   
225    /**
226    * Gets the taxonId value for this CrossReference.
227    *
228    * @return taxonId
229    */
 
230  0 toggle public java.lang.String getTaxonId()
231    {
232  0 return taxonId;
233    }
234   
235    /**
236    * Sets the taxonId value for this CrossReference.
237    *
238    * @param taxonId
239    */
 
240  0 toggle public void setTaxonId(java.lang.String taxonId)
241    {
242  0 this.taxonId = taxonId;
243    }
244   
245    private java.lang.Object __equalsCalc = null;
246   
 
247  0 toggle @Override
248    public synchronized boolean equals(java.lang.Object obj)
249    {
250  0 if (obj == null)
251    {
252  0 return false;
253    }
254  0 if (!(obj instanceof CrossReference))
255    {
256  0 return false;
257    }
258  0 CrossReference other = (CrossReference) obj;
259  0 if (this == obj)
260    {
261  0 return true;
262    }
263  0 if (__equalsCalc != null)
264    {
265  0 return (__equalsCalc == obj);
266    }
267  0 __equalsCalc = obj;
268  0 boolean _equals;
269  0 _equals = true
270    && ((this.accession == null && other.getAccession() == null) || (this.accession != null && this.accession
271    .equals(other.getAccession())))
272    && ((this.accessionVersion == null && other
273    .getAccessionVersion() == null) || (this.accessionVersion != null && this.accessionVersion
274    .equals(other.getAccessionVersion())))
275    && ((this.databaseDescription == null && other
276    .getDatabaseDescription() == null) || (this.databaseDescription != null && this.databaseDescription
277    .equals(other.getDatabaseDescription())))
278    && ((this.databaseName == null && other.getDatabaseName() == null) || (this.databaseName != null && this.databaseName
279    .equals(other.getDatabaseName())))
280    && ((this.dateAdded == null && other.getDateAdded() == null) || (this.dateAdded != null && this.dateAdded
281    .equals(other.getDateAdded())))
282    && ((this.dateDeleted == null && other.getDateDeleted() == null) || (this.dateDeleted != null && this.dateDeleted
283    .equals(other.getDateDeleted())))
284    && this.deleted == other.isDeleted()
285    && ((this.gi == null && other.getGi() == null) || (this.gi != null && this.gi
286    .equals(other.getGi())))
287    && ((this.taxonId == null && other.getTaxonId() == null) || (this.taxonId != null && this.taxonId
288    .equals(other.getTaxonId())));
289  0 __equalsCalc = null;
290  0 return _equals;
291    }
292   
293    private boolean __hashCodeCalc = false;
294   
295    /**
296    * hashCode designed to ensure that if two instances satisfy o1.equals(o2)
297    * then they have the same hashcode.
298    */
 
299  0 toggle @Override
300    public synchronized int hashCode()
301    {
302  0 if (__hashCodeCalc)
303    {
304  0 return 0;
305    }
306  0 __hashCodeCalc = true;
307  0 int _hashCode = 1;
308  0 if (getAccession() != null)
309    {
310  0 _hashCode += getAccession().hashCode();
311    }
312  0 if (getAccessionVersion() != null)
313    {
314  0 _hashCode += getAccessionVersion().hashCode();
315    }
316  0 if (getDatabaseDescription() != null)
317    {
318  0 _hashCode += getDatabaseDescription().hashCode();
319    }
320  0 if (getDatabaseName() != null)
321    {
322  0 _hashCode += getDatabaseName().hashCode();
323    }
324  0 if (getDateAdded() != null)
325    {
326  0 _hashCode += getDateAdded().hashCode();
327    }
328  0 if (getDateDeleted() != null)
329    {
330  0 _hashCode += getDateDeleted().hashCode();
331    }
332  0 _hashCode += (isDeleted() ? Boolean.TRUE : Boolean.FALSE).hashCode();
333  0 if (getGi() != null)
334    {
335  0 _hashCode += getGi().hashCode();
336    }
337  0 if (getTaxonId() != null)
338    {
339  0 _hashCode += getTaxonId().hashCode();
340    }
341  0 __hashCodeCalc = false;
342  0 return _hashCode;
343    }
344   
345    }