2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.cdm
.model
.name
;
13 import org
.apache
.log4j
.Logger
;
15 import eu
.etaxonomy
.cdm
.strategy
.cache
.INameCacheStrategy
;
16 import eu
.etaxonomy
.cdm
.strategy
.cache
.INonViralNameCacheStrategy
;
18 import javax
.persistence
.*;
21 * use name attribute for the entire virus name! examples see ICTVdb: http://www.
22 * ncbi.nlm.nih.gov/ICTVdb/Ictv/vn_indxA.htm
25 * @created 08-Nov-2007 13:07:02
28 public class ViralName
extends TaxonNameBase
<ViralName
, INameCacheStrategy
> {
29 static Logger logger
= Logger
.getLogger(ViralName
.class);
32 protected INameCacheStrategy cacheStrategy
;
35 //The accepted acronym for the Virus, e.g. PCV for Peanut Clump Virus
36 private String acronym
;
38 public ViralName(Rank rank
) {
43 public String
getAcronym(){
46 public void setAcronym(String acronym
){
47 this.acronym
= acronym
;
51 public String
generateTitle(){
52 logger
.warn("not yet implemented");
53 return this.toString();
58 public boolean isCodeCompliant() {
59 logger
.warn("not yet implemented");
66 public NomenclaturalCode
getNomeclaturalCode(){
67 return NomenclaturalCode
.VIRAL();
73 public INameCacheStrategy
getCacheStrategy() {
79 public void setCacheStrategy(INameCacheStrategy cacheStrategy
) {
80 this.cacheStrategy
= cacheStrategy
;