public class NonViralNameDefaultCacheStrategy extends NameCacheStrategyBase implements INonViralNameCacheStrategy
Modifier and Type | Field and Description |
---|---|
protected CharSequence |
basionymAuthorCombinationAuthorSeperator |
protected String |
basionymEnd |
protected String |
basionymStart |
protected String |
exAuthorSeperator |
protected String |
nameAuthorSeperator |
protected String |
zooAuthorYearSeperator |
Modifier | Constructor and Description |
---|---|
protected |
NonViralNameDefaultCacheStrategy() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAppendedTaggedPhrase(List<TaggedText> tags,
INonViralName nonViralName)
Adds the tag for the appended phrase if an appended phrase exists
|
protected void |
addInfraGenericPart(INonViralName name,
List<TaggedText> tags,
String infraGenericMarker,
String infraGenEpi)
Default implementation for the infrageneric part of a name.
|
protected List<TaggedText> |
doGetTaggedTitle(TaxonName nonViralName) |
protected String |
getAuthorAndExAuthor(INomenclaturalAuthor author,
INomenclaturalAuthor exAuthor)
Returns the AuthorCache part for a combination of an author and an ex author.
|
String |
getAuthorshipCache(TaxonName taxonName)
Returns the composed author string.
|
CharSequence |
getBasionymAuthorCombinationAuthorSeperator()
String that separates the basionym/original_combination author part from the combination author part
|
String |
getBasionymEnd()
String the basionym author part ends with e.g.
|
String |
getBasionymStart()
String the basionym author part starts with e.g.
|
String |
getExAuthorSeperator()
String to separate ex author from author.
|
protected List<TaggedText> |
getGenusOrUninomialTaggedNameCache(INonViralName nonViralName)
Returns the tag list for an genus or higher taxon.
|
protected List<TaggedText> |
getInfraGenusTaggedNameCache(INonViralName nonViralName)
Returns the tag list for an infrageneric taxon (including species aggregates).
|
protected List<TaggedText> |
getInfraSpeciesTaggedNameCache(INonViralName nonViralName,
boolean includeMarker)
Creates the tag list for an infraspecific taxon.
|
protected List<TaggedText> |
getInfraSpeciesTaggedNameCache(TaxonName nonViralName)
Creates the tag list for an infraspecific taxon.
|
String |
getLastEpithet(TaxonName taxonName)
Returns the last epithet of the name (i.e.
|
String |
getNameAuthorSeperator()
String that separates the NameCache part from the AuthorCache part
|
List<TaggedText> |
getNomStatusTags(TaxonName nonViralName,
boolean includeSeparatorBefore,
boolean includeSeparatorAfter)
Get
TaggedText for the nomenclatural status part |
protected String |
getNonCacheAuthorshipCache(TaxonName nonViralName)
Returns the authorshipcache string for the atomized authorship fields.
|
protected List<TaggedText> |
getRanklessTaggedNameCache(INonViralName nonViralName)
Returns the tag list for rankless taxa.
|
protected List<TaggedText> |
getSpeciesAggregateTaggedCache(INonViralName nonViralName)
Returns the tag list for a species aggregate (or similar) taxon.
Possible ranks for a species aggregate are "aggr.", "species group", ... |
protected List<TaggedText> |
getSpeciesTaggedNameCache(INonViralName nonViralName)
Returns the tag list for a species taxon.
|
List<TaggedText> |
getTaggedFullTitle(TaxonName nonViralName)
Same as
INameCacheStrategy.getTaggedTitle(TaxonName) but also includes the reference and
the nomenclatural status in the result. |
List<TaggedText> |
getTaggedName(TaxonName nonViralName)
Returns the tag list of the name part (without author and reference).
|
List<TaggedText> |
getTaggedTitle(TaxonName nonViralName)
Returns a list of name typified tokens that together make up the name (including authorship etc.).
|
UUID |
getUuid() |
String |
getZooAuthorYearSeperator() |
protected String |
getZoologicalNonCacheAuthorshipCache(TaxonName nonViralName) |
protected boolean |
nameIncludesAuthorship(INonViralName nonViralName)
Checks if the given name should include the author in it's cached version.
This is usually the case but not for species aggregates. |
static NonViralNameDefaultCacheStrategy |
NewInstance() |
void |
setBasionymAuthorCombinationAuthorSeperator(CharSequence basionymAuthorCombinationAuthorSeperator) |
void |
setBasionymEnd(String basionymEnd) |
void |
setBasionymStart(String basionymStart) |
void |
setExAuthorSeperator(String exAuthorSeperator) |
void |
setNameAuthorSeperator(String nameAuthorSeperator) |
void |
setZooAuthorYearSeperator(String authorYearSeperator) |
addOriginalSpelling, createString, createString, getFullTitleCache, getFullTitleCache, getNameCache, getTitleCache, getTitleCache
isBlank, isCollection, isNotBlank, isPrimitive, isSingleCdmBaseObject, isUserType, Nz
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFullTitleCache, getFullTitleCache, getNameCache, getTitleCache
getTitleCache
protected String nameAuthorSeperator
protected String basionymStart
protected String basionymEnd
protected String exAuthorSeperator
protected CharSequence basionymAuthorCombinationAuthorSeperator
protected String zooAuthorYearSeperator
public UUID getUuid()
getUuid
in class StrategyBase
public static NonViralNameDefaultCacheStrategy NewInstance()
public String getNameAuthorSeperator()
public void setNameAuthorSeperator(String nameAuthorSeperator)
public String getBasionymStart()
basionymEnd
attributepublic void setBasionymStart(String basionymStart)
public String getBasionymEnd()
basionymStart
attributepublic void setBasionymEnd(String basionymEnd)
public String getExAuthorSeperator()
public void setExAuthorSeperator(String exAuthorSeperator)
public CharSequence getBasionymAuthorCombinationAuthorSeperator()
public void setBasionymAuthorCombinationAuthorSeperator(CharSequence basionymAuthorCombinationAuthorSeperator)
public String getZooAuthorYearSeperator()
public void setZooAuthorYearSeperator(String authorYearSeperator)
public String getAuthorshipCache(TaxonName taxonName)
INameCacheStrategy
getAuthorshipCache
in interface INameCacheStrategy
protected String getNonCacheAuthorshipCache(TaxonName nonViralName)
nonViralName
- NullPointerException
- if nonViralName is null.protected String getZoologicalNonCacheAuthorshipCache(TaxonName nonViralName)
protected String getAuthorAndExAuthor(INomenclaturalAuthor author, INomenclaturalAuthor exAuthor)
author
- the authorexAuthor
- the ex-authorprotected boolean nameIncludesAuthorship(INonViralName nonViralName)
nonViralName
- public List<TaggedText> getTaggedFullTitle(TaxonName nonViralName)
INameCacheStrategy
INameCacheStrategy.getTaggedTitle(TaxonName)
but also includes the reference and
the nomenclatural status in the result.getTaggedFullTitle
in interface INameCacheStrategy
getTaggedFullTitle
in class NameCacheStrategyBase
public List<TaggedText> getNomStatusTags(TaxonName nonViralName, boolean includeSeparatorBefore, boolean includeSeparatorAfter)
INameCacheStrategy
TaggedText
for the nomenclatural status partgetNomStatusTags
in interface INameCacheStrategy
getNomStatusTags
in class NameCacheStrategyBase
nonViralName
- tags
- public List<TaggedText> getTaggedTitle(TaxonName nonViralName)
INameCacheStrategy
getTaggedTitle
in interface INameCacheStrategy
getTaggedTitle
in class NameCacheStrategyBase
null
if taxonName is null
public List<TaggedText> getTaggedName(TaxonName nonViralName)
getTaggedName
in interface INameCacheStrategy
nonViralName
- protected List<TaggedText> getRanklessTaggedNameCache(INonViralName nonViralName)
nonViralName
- protected List<TaggedText> getGenusOrUninomialTaggedNameCache(INonViralName nonViralName)
nonViralName
- protected List<TaggedText> getInfraGenusTaggedNameCache(INonViralName nonViralName)
nonViralName
- #getSpeciesAggregateTaggedCache(NonViralName)
protected void addInfraGenericPart(INonViralName name, List<TaggedText> tags, String infraGenericMarker, String infraGenEpi)
nonViralName
- tags
- infraGenericMarker
- protected List<TaggedText> getSpeciesAggregateTaggedCache(INonViralName nonViralName)
nonViralName
- protected List<TaggedText> getSpeciesTaggedNameCache(INonViralName nonViralName)
nonViralName
- protected List<TaggedText> getInfraSpeciesTaggedNameCache(TaxonName nonViralName)
nonViralName
- protected List<TaggedText> getInfraSpeciesTaggedNameCache(INonViralName nonViralName, boolean includeMarker)
nonViralName
- includeMarker
- protected void addAppendedTaggedPhrase(List<TaggedText> tags, INonViralName nonViralName)
tags
- nonViralName
- public String getLastEpithet(TaxonName taxonName)
INonViralNameCacheStrategy
getLastEpithet
in interface INonViralNameCacheStrategy
protected List<TaggedText> doGetTaggedTitle(TaxonName nonViralName)
doGetTaggedTitle
in class NameCacheStrategyBase
Copyright © 2007-2017 EDIT. All Rights Reserved.