1
|
/**
|
2
|
* Copyright (C) 2009 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
|
|
10
|
package eu.etaxonomy.cdm.strategy.cache.reference;
|
11
|
|
12
|
import eu.etaxonomy.cdm.model.reference.Reference;
|
13
|
import eu.etaxonomy.cdm.strategy.cache.common.IIdentifiableEntityCacheStrategy;
|
14
|
|
15
|
/**
|
16
|
* A reference cache rendering strategy for {@link Reference references}.
|
17
|
*
|
18
|
* @author a.mueller
|
19
|
*
|
20
|
*/
|
21
|
public interface IReferenceCacheStrategy extends IIdentifiableEntityCacheStrategy<Reference> {
|
22
|
|
23
|
/**
|
24
|
* Returns a short version of the reference, suitable for citation (e.g. ${authorname}, ${year})
|
25
|
* @return
|
26
|
*/
|
27
|
public String getCitation(Reference reference);
|
28
|
|
29
|
/**
|
30
|
* Returns the full abbreviated title string which
|
31
|
* is a string representation of Reference which
|
32
|
* preferably uses the {@link Reference#getAbbrevTitle() abbrev title}
|
33
|
* of the reference instead of the title. This is not the same as
|
34
|
* the {@link INomenclaturalReferenceCacheStrategy#nomenclaturalTitleCache
|
35
|
* @return
|
36
|
*/
|
37
|
public String getFullAbbrevTitleString(Reference reference);
|
38
|
|
39
|
|
40
|
}
|