Revision 6fb4b2fc
Added by Andreas Müller over 12 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/TaggedTextGenerator.java | ||
---|---|---|
24 | 24 |
* @author a.kohlbecker |
25 | 25 |
* @date 29.03.2011 |
26 | 26 |
* |
27 |
* @deprecated use List<TaggedText> methods in according cache strategies instead. Will be removed with version 3.1. |
|
27 | 28 |
*/ |
29 |
@Deprecated |
|
28 | 30 |
public class TaggedTextGenerator { |
29 | 31 |
|
30 | 32 |
/** |
... | ... | |
32 | 34 |
* |
33 | 35 |
* @param taxonNameBase |
34 | 36 |
* @return |
37 |
* @deprecated use List<TaggedText> methods in according cache strategies instead. Will be removed with next major version. |
|
35 | 38 |
*/ |
39 |
@Deprecated |
|
36 | 40 |
public static List<TaggedText> getTaggedName(TaxonNameBase<TaxonNameBase<?,?>, INameCacheStrategy<TaxonNameBase<?,?>>> taxonNameBase){ |
37 | 41 |
|
38 | 42 |
List<TaggedText> tags = new ArrayList<TaggedText>(); |
cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/cache/name/INameCacheStrategy.java | ||
---|---|---|
31 | 31 |
* Date or Reference |
32 | 32 |
* Example: ["Abies","alba",Rank.SUBSPECIES,"alpina",AuthorTeam("Greuther (L.)")] |
33 | 33 |
* |
34 |
* @deprecated use {@link #getTaggedTitle(TaxonNameBase)} or |
|
35 |
* {@link #getTaggedFullTitle(TaxonNameBase)} or {@link #getNameCache(TaxonNameBase)} instead. |
|
36 |
* Will be removed in version 3.1 |
|
34 | 37 |
* @param taxonNameBase |
35 | 38 |
* @return |
36 | 39 |
*/ |
... | ... | |
58 | 61 |
*/ |
59 | 62 |
public List<TaggedText> getTaggedFullTitle(T taxonName); |
60 | 63 |
|
64 |
/** |
|
65 |
* Same as {@link #getTaggedTitle(TaxonNameBase)} but not including authorship. |
|
66 |
* @param taxonName |
|
67 |
* @return |
|
68 |
*/ |
|
69 |
public List<TaggedText> getTaggedName(T taxonName); |
|
70 |
|
|
61 | 71 |
|
62 | 72 |
/** |
63 | 73 |
* Returns the full title cache as a string. |
... | ... | |
65 | 75 |
* @return |
66 | 76 |
*/ |
67 | 77 |
public String getFullTitleCache(T taxonNameBase); |
78 |
|
|
79 |
/** |
|
80 |
* Returns the name cache as a string. |
|
81 |
* @param taxonNameBase |
|
82 |
* @return |
|
83 |
*/ |
|
84 |
public String getNameCache(T taxonNameBase); |
|
68 | 85 |
} |
Also available in: Unified diff
cleaning up cache strategies and taggedTextGenerator