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 java
.util
.List
;
12 import java
.util
.UUID
;
14 import org
.apache
.log4j
.Logger
;
16 import eu
.etaxonomy
.cdm
.model
.name
.TaxonNameBase
;
17 import eu
.etaxonomy
.cdm
.strategy
.StrategyBase
;
18 import eu
.etaxonomy
.cdm
.strategy
.cache
.HTMLTagRules
;
19 import eu
.etaxonomy
.cdm
.strategy
.cache
.TaggedText
;
24 public abstract class NameCacheStrategyBase
<T
extends TaxonNameBase
> extends StrategyBase
implements INameCacheStrategy
<T
> {
25 @SuppressWarnings("unused")
26 private static final Logger logger
= Logger
.getLogger(NameCacheStrategyBase
.class);
28 final static UUID uuid
= UUID
.fromString("817ae5b5-3ac2-414b-a134-a9ae86cba040");
33 public NameCacheStrategyBase() {
39 * Generates and returns the title cache of the given name.
40 * The title cache in general includes the name and the authorship and year for some types of names.
42 * @see eu.etaxonomy.cdm.strategy.INameCacheStrategy#getTitleCache(eu.etaxonomy.cdm.model.common.CdmBase)
43 * @see eu.etaxonomy.cdm.strategy.cache.common.IIdentifiableEntityCacheStrategy#getTitleCache(eu.etaxonomy.cdm.model.common.IdentifiableEntity)
46 public abstract String
getTitleCache(T name
);
49 public abstract String
getTitleCache(T name
, HTMLTagRules rules
);
52 public abstract String
getFullTitleCache(T name
);
55 public abstract String
getFullTitleCache(T name
, HTMLTagRules rules
);
58 public abstract List
<TaggedText
> getTaggedTitle(T taxonNameBase
);
61 public abstract List
<TaggedText
> getTaggedFullTitle(T taxonNameBase
);