Revision 47341693
ref #6369 add IViralName interface
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/IViralName.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2017 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
9 |
package eu.etaxonomy.cdm.model.name; |
|
10 |
|
|
11 |
/** |
|
12 |
* The taxon name interface for viral taxa. The scientific name will be stored |
|
13 |
* as a string (consisting eventually of several words even combined also with |
|
14 |
* non alphabetical characters) in the inherited {@link eu.etaxonomy.cdm.model.common.IdentifiableEntity#setTitleCache(String) titleCache} attribute. |
|
15 |
* Classification has no influence on the names of viral taxon names and no |
|
16 |
* viral taxon must be taxonomically included in another viral taxon with |
|
17 |
* higher rank. For examples see ICTVdb: |
|
18 |
* "http://www.ncbi.nlm.nih.gov/ICTVdb/Ictv/vn_indxA.htm" |
|
19 |
* <P> |
|
20 |
* This class corresponds to: NameViral according to the ABCD schema. |
|
21 |
* |
|
22 |
* @author a.mueller |
|
23 |
* @date 26.01.2017 |
|
24 |
* |
|
25 |
*/ |
|
26 |
public interface IViralName extends ITaxonNameBase { |
|
27 |
|
|
28 |
/** |
|
29 |
* Returns the accepted acronym (an assigned abbreviation) string for <i>this</i> |
|
30 |
* viral taxon name. For instance PCV stays for Peanut Clump Virus. |
|
31 |
* |
|
32 |
* @return the string containing the accepted acronym of <i>this</i> viral taxon name |
|
33 |
*/ |
|
34 |
public String getAcronym(); |
|
35 |
|
|
36 |
/** |
|
37 |
* @see #getAcronym() |
|
38 |
*/ |
|
39 |
public void setAcronym(String acronym); |
|
40 |
} |
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/ViralName.java | ||
---|---|---|
44 | 44 |
* This class corresponds to: NameViral according to the ABCD schema. |
45 | 45 |
* |
46 | 46 |
* @author m.doering |
47 |
* @version 1.0 |
|
48 | 47 |
* @created 08-Nov-2007 13:07:02 |
49 | 48 |
*/ |
50 | 49 |
@XmlAccessorType(XmlAccessType.FIELD) |
... | ... | |
56 | 55 |
@Indexed(index = "eu.etaxonomy.cdm.model.name.TaxonNameBase") |
57 | 56 |
@Audited |
58 | 57 |
@Configurable |
59 |
public class ViralName extends TaxonNameBase<ViralName, INameCacheStrategy<ViralName>> implements Cloneable { |
|
58 |
public class ViralName |
|
59 |
extends TaxonNameBase<ViralName, INameCacheStrategy<ViralName>> |
|
60 |
implements IViralName { |
|
60 | 61 |
private static final long serialVersionUID = 4516625507432071817L; |
61 | 62 |
private static final Logger logger = Logger.getLogger(ViralName.class); |
62 | 63 |
|
... | ... | |
114 | 115 |
* |
115 | 116 |
* @return the string containing the accepted acronym of <i>this</i> viral taxon name |
116 | 117 |
*/ |
117 |
public String getAcronym(){ |
|
118 |
@Override |
|
119 |
public String getAcronym(){ |
|
118 | 120 |
return this.acronym; |
119 | 121 |
} |
120 | 122 |
/** |
121 | 123 |
* @see #getAcronym() |
122 | 124 |
*/ |
123 |
public void setAcronym(String acronym){ |
|
125 |
@Override |
|
126 |
public void setAcronym(String acronym){ |
|
124 | 127 |
this.acronym = StringUtils.isBlank(acronym)? null : acronym; |
125 | 128 |
} |
126 | 129 |
|
Also available in: Unified diff