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.
9 package eu
.etaxonomy
.cdm
.strategy
.cache
.name
;
11 import eu
.etaxonomy
.cdm
.model
.name
.NonViralName
;
14 * A name cache rendering strategy for all TaxonNameBase subclasses.
15 * Different TaxonNameBase subclasses could have different strategies.
18 * @param <T> The concrete TaxonName class this strategy applies for
20 public interface INonViralNameCacheStrategy
<T
extends NonViralName
> extends INameCacheStrategy
<T
> {
23 * returns the last epithet of the name (i.e. uninomial if generic or above, infrageneric epithet if infrageneric,
24 * specific epithet if species and infraspecific epithet if infraspecific, possibly with other information (e.g. ranks
25 * in infraspecific names, indications of hybrid status etc)).
27 * This is suitable for rendering the name in context of the name which taxonomically includes it i.e. taxonomic hierarchies or
28 * checklists organised into a hierarchy where the initial epithets are removed for brevity
33 public String
getLastEpithet(T taxonNameBase
);
36 * returns the composed scientific taxon name string without authors nor year
40 public String
getNameCache(T taxonNameBase
);
43 * returns the composed author string
47 public String
getAuthorshipCache(T nonViralName
);