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 all subclasses of Reference.
|
17
|
* @author a.mueller
|
18
|
*
|
19
|
* @param <T> The concrete Reference class this strategy applies for
|
20
|
*/
|
21
|
public interface IReferenceBaseCacheStrategy 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 abbreviated title cache which is a title cache which uses the {@link Reference#getAbbrevTitle() abbrev title}
|
31
|
* @return
|
32
|
*/
|
33
|
public String getAbbrevTitleCache(Reference reference);
|
34
|
|
35
|
|
36
|
}
|