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