|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.etaxonomy.cdm.model.common.CdmBase
eu.etaxonomy.cdm.model.common.VersionableEntity
eu.etaxonomy.cdm.model.common.AnnotatableEntity
eu.etaxonomy.cdm.model.common.IdentifiableEntity<S>
eu.etaxonomy.cdm.model.name.TaxonNameBase<T,S>
@Entity public abstract class TaxonNameBase<T extends TaxonNameBase<?,?>,S extends INameCacheStrategy>
The upmost (abstract) class for scientific taxon names regardless of any
particular nomenclature code. The scientific taxon name does not depend
on the use made of it in a publication or a treatment
(taxon concept respectively potential taxon)
as an "accepted" respectively "correct" (taxon) name
or as a synonym.
This class corresponds partially to:
| Field Summary | |
|---|---|
protected String |
fullTitleCache
|
| Fields inherited from class eu.etaxonomy.cdm.model.common.IdentifiableEntity |
|---|
cacheStrategy, NOT_PROTECTED, PROTECTED, protectedTitleCache, titleCache |
| Fields inherited from class eu.etaxonomy.cdm.model.common.AnnotatableEntity |
|---|
annotations, markers |
| Fields inherited from class eu.etaxonomy.cdm.model.common.CdmBase |
|---|
uuid |
| Constructor Summary | |
|---|---|
TaxonNameBase()
Class constructor: creates a new empty taxon name. |
|
TaxonNameBase(HomotypicalGroup homotypicalGroup)
Class constructor: creates a new taxon name only containing its homotypical group. |
|
TaxonNameBase(Rank rank)
Class constructor: creates a new taxon name only containing its rank. |
|
TaxonNameBase(Rank rank,
HomotypicalGroup homotypicalGroup)
Class constructor: creates a new taxon name only containing its rank and
its homotypical group. |
|
| Method Summary | |
|---|---|
void |
addBasionym(T basionym)
Assigns a taxon name as basionym of this taxon name. |
NameRelationship |
addBasionym(T basionym,
Reference citation,
String microcitation,
String ruleConsidered)
Assigns a taxon name as basionym of this taxon name
and keeps the nomenclatural rule considered for it. |
void |
addDescription(TaxonNameDescription description)
Adds a new taxon name description
to the set of taxon name descriptions assigned to this taxon name. |
protected void |
addNameRelationship(NameRelationship rel)
Adds an existing name relationship either to the set of
relations to this taxon name or to the set of
relations from this taxon name. |
NameTypeDesignation |
addNameTypeDesignation(TaxonNameBase typeSpecies,
Reference citation,
String citationMicroReference,
String originalNameString,
NameTypeDesignationStatus status,
boolean addToAllHomotypicNames)
Creates and adds a new name type designation
to this taxon name's set of type designations. |
NameTypeDesignation |
addNameTypeDesignation(TaxonNameBase typeSpecies,
Reference citation,
String citationMicroReference,
String originalNameString,
NameTypeDesignationStatus status,
boolean isRejectedType,
boolean isConservedType,
boolean isNotDesignated,
boolean addToAllHomotypicNames)
Creates and adds a new name type designation
to this taxon name's set of type designations. |
void |
addParsingProblem(ParserProblem problem)
Adds a parsing problem to the list of parsing problems |
void |
addParsingProblems(int problems)
|
void |
addRelationship(RelationshipBase relation)
Does exactly the same as the addNameRelationship method provided that the given relationship is a name relationship. |
void |
addRelationshipFromName(TaxonNameBase fromName,
NameRelationshipType type,
Reference citation,
String microCitation,
String ruleConsidered)
Creates a new name relationship from another taxon name to this taxon name
and adds it both to the set of relations to this taxon name and
to the set of relations from the other taxon name. |
void |
addRelationshipFromName(TaxonNameBase fromName,
NameRelationshipType type,
String ruleConsidered)
Creates a new name relationship from another taxon name to this taxon name
and adds it both to the set of relations to this taxon name and
to the set of relations from the other taxon name. |
NameRelationship |
addRelationshipToName(TaxonNameBase toName,
NameRelationshipType type,
Reference citation,
String microCitation,
String ruleConsidered)
Creates a new name relationship from this taxon name to another taxon name
and adds it both to the set of relations from this taxon name and
to the set of relations to the other taxon name. |
void |
addRelationshipToName(TaxonNameBase toName,
NameRelationshipType type,
String ruleConsidered)
Creates a new name relationship from this taxon name to another taxon name
and adds it both to the set of relations from this taxon name and
to the set of relations to the other taxon name. |
void |
addReplacedSynonym(T replacedSynonym,
Reference citation,
String microcitation,
String ruleConsidered)
Assigns a taxon name as replaced synonym of this taxon name
and keeps the nomenclatural rule considered for it. |
SpecimenTypeDesignation |
addSpecimenTypeDesignation(Specimen typeSpecimen,
SpecimenTypeDesignationStatus status,
Reference citation,
String citationMicroReference,
String originalNameString,
boolean isNotDesignated,
boolean addToAllHomotypicNames)
Creates and adds a new specimen type designation
to this taxon name's set of type designations. |
void |
addStatus(NomenclaturalStatus nomStatus)
Adds a new nomenclatural status
to this taxon name's set of nomenclatural status. |
void |
addTaxonBase(TaxonBase taxonBase)
Adds a new taxon base
to the set of taxon bases using this taxon name. |
boolean |
addTypeDesignation(TypeDesignationBase typeDesignation,
boolean addToAllNames)
Adds a type designation to this taxon name's set of type designations |
Object |
clone()
Clones this taxon name. |
abstract String |
generateFullTitle()
|
protected abstract Map<String,Field> |
getAllFields()
|
String |
getAppendedPhrase()
Returns the appended phrase string assigned to this taxon name. |
TaxonNameBase |
getBasionym()
Returns the taxon name which is the basionym of this taxon name. |
Set<TaxonNameBase> |
getBasionyms()
Returns the set of taxon names which are the basionyms of this taxon name. |
Reference |
getCitation()
|
String |
getCitationString()
Returns the complete string containing the nomenclatural reference citation
and the details assigned to this taxon name. |
Set<TaxonNameDescription> |
getDescriptions()
Returns the set of taxon name descriptions assigned
to this taxon name. |
String |
getFullTitleCache()
|
HomotypicalGroup |
getHomotypicalGroup()
Returns the homotypical group to which
this taxon name belongs. |
Set<NameRelationship> |
getNameRelations()
Returns the set of all name relationships
in which this taxon name is involved. |
Set<NameTypeDesignation> |
getNameTypeDesignations()
Returns the set of name type designations assigned
to this taxon name the rank of which must be above "species". |
abstract NomenclaturalCode |
getNomenclaturalCode()
Returns null as the nomenclatural code that governs
the construction of this taxon name since there is no specific
nomenclatural code defined. |
String |
getNomenclaturalMicroReference()
Returns the details string of the nomenclatural reference assigned
to this taxon name. |
INomenclaturalReference |
getNomenclaturalReference()
Returns the nomenclatural reference of this taxon name. |
int |
getParsingProblem()
Returns an integer value indicating whether the used parser method was able to parse a string successfully into this object ( 0)
or not (!=0). |
List<ParserProblem> |
getParsingProblems()
Returns the parsing problems |
int |
getProblemEnds()
Returns the integer value of the position where a parsing problem ends. |
int |
getProblemStarts()
Returns the integer value of the position where a parsing problem starts. |
Rank |
getRank()
Returns the taxonomic rank of this taxon name. |
String |
getReferenceYear()
Returns the string containing the publication date (generally only year) of the nomenclatural reference for this taxon name, null if there is
no nomenclatural reference. |
Set<NameRelationship> |
getRelationsFromThisName()
Returns the set of all name relationships
in which this taxon name is involved as a source ("from"-side). |
Set<NameRelationship> |
getRelationsToThisName()
Returns the set of all name relationships
in which this taxon name is involved as a target ("to"-side). |
Set<SpecimenTypeDesignation> |
getSpecimenTypeDesignations()
Returns the set of specimen type designations
that typify this taxon name. |
Set<SpecimenTypeDesignation> |
getSpecimenTypeDesignationsOfHomotypicalGroup()
Returns the set of specimen type designations assigned
to this taxon name. |
Set<NomenclaturalStatus> |
getStatus()
Returns the set of nomenclatural status assigned
to this taxon name according to its corresponding nomenclature code. |
Set<Synonym> |
getSynonyms()
Returns the set of (junior) synonyms (according to any
reference) that are based on this taxon name. |
List<TaggedText> |
getTaggedName()
|
Set<Taxon> |
getTaxa()
Returns the set of taxa ("accepted/correct" names according to any
reference) that are based on this taxon name. |
Set<TaxonBase> |
getTaxonBases()
Returns the set of taxon bases that refer to this taxon name. |
Set<TypeDesignationBase> |
getTypeDesignations()
Returns the set of type designations assigned
to this taxon name. |
boolean |
hasProblem()
Returns true if any parsing problem (warning or error) exists. |
boolean |
hasProblem(ParserProblem problem)
Returns true, if the specified problem exists. |
boolean |
isBasionymFor(TaxonNameBase newCombinationName)
Checks whether a basionym relationship exists between fromName and toName. |
abstract boolean |
isCodeCompliant()
Returns the boolean value "false" since the components of this taxon name cannot follow the rules of a corresponding nomenclatural code
which is not defined for this class. |
boolean |
isGenus()
Returns the boolean value indicating whether the taxonomic rank of this
taxon name is the genus rank (true) or not (false). |
boolean |
isGroupsBasionym()
Checks whether name is a basionym for ALL names in its homotypical group. |
boolean |
isHomotypic(TaxonNameBase homoTypicName)
Returns the boolean value indicating whether a given taxon name belongs to the same homotypical group as this taxon name (true)
or not (false). |
boolean |
isInfraGeneric()
Returns the boolean value indicating whether the taxonomic rank of this
taxon name is higher than the species rank and lower than the
genus rank (true) or not (false). |
boolean |
isInfraSpecific()
Returns the boolean value indicating whether the taxonomic rank of this
taxon name is lower than the species rank (true) or not (false). |
boolean |
isOriginalCombination()
Indicates whether this taxon name is a basionym
or a replaced synonym
of any other taxon name. |
boolean |
isProtectedFullTitleCache()
|
boolean |
isSpecies()
Returns the boolean value indicating whether the taxonomic rank of this
taxon name is the species rank (true) or not (false). |
boolean |
isSupraGeneric()
Returns the boolean value indicating whether the taxonomic rank of this
taxon name is higher than the genus rank (true) or not (false). |
boolean |
isSupraSpecific()
Returns the boolean value indicating whether the taxonomic rank of this
taxon name is higher than the species rank (true) or not (false). |
void |
makeGroupsBasionym()
Creates a basionym relationship to all other names in this names homotypical group. |
void |
mergeHomotypicGroups(TaxonNameBase name)
|
void |
removeAsGroupsBasionym()
Removes basionym relationship between this name and each name in its homotypic group. |
void |
removeBasionyms()
Removes the basionym relationship from the set of
name relationships to this taxon name. |
void |
removeDescription(TaxonNameDescription description)
Removes one element from the set of taxon name descriptions assigned
to this taxon name. |
void |
removeNameRelationship(NameRelationship nameRelation)
Removes one name relationship from one of both sets of
name relationships in which this taxon name is involved. |
void |
removeParsingProblem(ParserProblem problem)
Removes a parsing problem from the list of parsing problems. |
void |
removeRelationToTaxonName(TaxonNameBase toTaxonName)
|
void |
removeStatus(NomenclaturalStatus nomStatus)
Removes one element from the set of nomenclatural status of this taxon name. |
void |
removeTaxonBase(TaxonBase taxonBase)
Removes one element from the set of taxon bases that refer to this taxon name. |
void |
removeTypeDesignation(TypeDesignationBase typeDesignation)
Removes one element from the set of type designations assigned to
this taxon name. |
void |
setAppendedPhrase(String appendedPhrase)
|
void |
setAsGroupsBasionym()
Creates a basionym relationship between this name and each name in its homotypic group. |
void |
setFullTitleCache(String fullTitleCache)
|
void |
setFullTitleCache(String fullTitleCache,
boolean protectCache)
|
void |
setHomotypicalGroup(HomotypicalGroup homotypicalGroup)
|
void |
setNomenclaturalMicroReference(String nomenclaturalMicroReference)
|
void |
setNomenclaturalReference(INomenclaturalReference nomenclaturalReference)
Assigns a nomenclatural reference to this taxon name. |
void |
setParsingProblem(int parsingProblem)
|
void |
setProblemEnds(int end)
|
void |
setProblemStarts(int start)
|
void |
setProtectedFullTitleCache(boolean protectedFullTitleCache)
|
void |
setRank(Rank rank)
|
| Methods inherited from class eu.etaxonomy.cdm.model.common.IdentifiableEntity |
|---|
addCredit, addCredit, addExtension, addExtension, addRights, addSource, addSource, compareTo, generateTitle, getCacheStrategy, getCredits, getCredits, getData, getExtensions, getExtensions, getExtensions, getLsid, getRights, getSources, getTitleCache, getTruncatedCache, initListener, isProtectedTitleCache, regenerateTitleCache, removeCredit, removeCredit, removeExtension, removeRights, removeSource, setCacheStrategy, setLsid, setProtectedTitleCache, setTitleCache, setTitleCache, toString |
| Methods inherited from class eu.etaxonomy.cdm.model.common.AnnotatableEntity |
|---|
addAnnotation, addMarker, getAnnotations, getMarkers, hasMarker, hasMarker, removeAnnotation, removeMarker |
| Methods inherited from class eu.etaxonomy.cdm.model.common.VersionableEntity |
|---|
equals, getUpdated, getUpdatedBy, setUpdated, setUpdatedBy |
| Methods inherited from class eu.etaxonomy.cdm.model.common.CdmBase |
|---|
addPropertyChangeListener, addPropertyChangeListener, clone, deproxy, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUuid, hashCode, hasListeners, instanceToString, invokeSetMethod, invokeSetMethodWithNull, isInstanceOf, removePropertyChangeListener, removePropertyChangeListener, setCreated, setCreatedBy, setId, setUuid |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface eu.etaxonomy.cdm.model.common.IRelated |
|---|
getUuid |
| Methods inherited from interface eu.etaxonomy.cdm.model.common.ICdmBase |
|---|
getCreated, getCreatedBy, getId, getUuid, setCreated, setCreatedBy, setId, setUuid |
| Methods inherited from interface eu.etaxonomy.cdm.model.common.IAnnotatableEntity |
|---|
addAnnotation, addMarker, getAnnotations, getMarkers, hasMarker, hasMarker, removeAnnotation, removeMarker |
| Methods inherited from interface eu.etaxonomy.cdm.model.common.IVersionableEntity |
|---|
getUpdated, getUpdatedBy, setUpdated, setUpdatedBy |
| Field Detail |
|---|
@NotEmpty(groups=Level2.class) @Size(max=330) protected String fullTitleCache
| Constructor Detail |
|---|
public TaxonNameBase()
TaxonNameBase(Rank),
TaxonNameBase(HomotypicalGroup),
TaxonNameBase(Rank, HomotypicalGroup)public TaxonNameBase(Rank rank)
rank.
rank - the rank to be assigned to this taxon nameTaxonNameBase(),
TaxonNameBase(HomotypicalGroup),
TaxonNameBase(Rank, HomotypicalGroup)public TaxonNameBase(HomotypicalGroup homotypicalGroup)
homotypical group.
The new taxon name will be also added to the set of taxon names
belonging to this homotypical group.
homotypicalGroup - the homotypical group to which this taxon name belongsTaxonNameBase(),
TaxonNameBase(Rank),
TaxonNameBase(Rank, HomotypicalGroup)
public TaxonNameBase(Rank rank,
HomotypicalGroup homotypicalGroup)
rank and
its homotypical group.
The new taxon name will be also added to the set of taxon names
belonging to this homotypical group.
rank - the rank to be assigned to this taxon namehomotypicalGroup - the homotypical group to which this taxon name belongsTaxonNameBase(),
TaxonNameBase(Rank),
TaxonNameBase(HomotypicalGroup)| Method Detail |
|---|
protected abstract Map<String,Field> getAllFields()
public abstract boolean isCodeCompliant()
nomenclatural code
which is not defined for this class. The nomenclature code depends on
the concrete name subclass (BacterialName,
BotanicalName, CultivarPlantName,
ZoologicalName or ViralName)
to which a taxon name belongs.
public abstract String generateFullTitle()
public List<TaggedText> getTaggedName()
public String getFullTitleCache()
public void setFullTitleCache(String fullTitleCache)
public void setFullTitleCache(String fullTitleCache,
boolean protectCache)
public boolean isProtectedFullTitleCache()
public void setProtectedFullTitleCache(boolean protectedFullTitleCache)
public Set<NameRelationship> getNameRelations()
name relationships
in which this taxon name is involved. A taxon name can be both source
in some name relationships or target in some others.
getRelationsToThisName(),
getRelationsFromThisName(),
addNameRelationship(NameRelationship),
addRelationshipToName(TaxonNameBase, NameRelationshipType, String),
addRelationshipFromName(TaxonNameBase, NameRelationshipType, String)
public void addRelationshipToName(TaxonNameBase toName,
NameRelationshipType type,
String ruleConsidered)
name relationship from this taxon name to another taxon name
and adds it both to the set of relations from this taxon name and
to the set of relations to the other taxon name.
toName - the taxon name of the target for this new name relationshiptype - the type of this new name relationshipruleConsidered - the string which specifies the rule on which this name relationship is basedgetRelationsToThisName(),
getNameRelations(),
addRelationshipFromName(TaxonNameBase, NameRelationshipType, String),
addNameRelationship(NameRelationship)
public NameRelationship addRelationshipToName(TaxonNameBase toName,
NameRelationshipType type,
Reference citation,
String microCitation,
String ruleConsidered)
name relationship from this taxon name to another taxon name
and adds it both to the set of relations from this taxon name and
to the set of relations to the other taxon name.
toName - the taxon name of the target for this new name relationshiptype - the type of this new name relationshipruleConsidered - the string which specifies the rule on which this name relationship is based
getRelationsToThisName(),
getNameRelations(),
addRelationshipFromName(TaxonNameBase, NameRelationshipType, String),
addNameRelationship(NameRelationship)
public void addRelationshipFromName(TaxonNameBase fromName,
NameRelationshipType type,
String ruleConsidered)
name relationship from another taxon name to this taxon name
and adds it both to the set of relations to this taxon name and
to the set of relations from the other taxon name.
fromName - the taxon name of the source for this new name relationshiptype - the type of this new name relationshipruleConsidered - the string which specifies the rule on which this name relationship is basedcitation - the reference in which this relation was describedmicroCitation - the reference detail for this relation (e.g. page)getRelationsFromThisName(),
getNameRelations(),
addRelationshipToName(TaxonNameBase, NameRelationshipType, String),
addNameRelationship(NameRelationship)
public void addRelationshipFromName(TaxonNameBase fromName,
NameRelationshipType type,
Reference citation,
String microCitation,
String ruleConsidered)
name relationship from another taxon name to this taxon name
and adds it both to the set of relations to this taxon name and
to the set of relations from the other taxon name.
fromName - the taxon name of the source for this new name relationshiptype - the type of this new name relationshipruleConsidered - the string which specifies the rule on which this name relationship is basedcitation - the reference in which this relation was describedmicroCitation - the reference detail for this relation (e.g. page)getRelationsFromThisName(),
getNameRelations(),
addRelationshipToName(TaxonNameBase, NameRelationshipType, String),
addNameRelationship(NameRelationship)protected void addNameRelationship(NameRelationship rel)
name relationship either to the set of
relations to this taxon name or to the set of
relations from this taxon name. If neither the
source nor the target of the name relationship match with this taxon name
no addition will be carried out.
rel - the name relationship to be added to one of this taxon name's name relationships setsgetNameRelations(),
addRelationshipToName(TaxonNameBase, NameRelationshipType, String),
addRelationshipFromName(TaxonNameBase, NameRelationshipType, String)public void removeNameRelationship(NameRelationship nameRelation)
name relationship from one of both sets of
name relationships in which this taxon name is involved.
The name relationship will also be removed from one of both sets belonging
to the second taxon name involved. Furthermore the fromName and toName
attributes of the name relationship object will be nullified.
nameRelation - the name relationship which should be deleted from one of both setsgetNameRelations()public void removeRelationToTaxonName(TaxonNameBase toTaxonName)
public void addRelationship(RelationshipBase relation)
addRelationship in interface IRelatedrelation - the relationship to be added to one of this taxon name's name relationships setsaddNameRelationship(NameRelationship),
getNameRelations(),
NameRelationship,
RelationshipBasepublic Set<NameRelationship> getRelationsFromThisName()
name relationships
in which this taxon name is involved as a source ("from"-side).
getNameRelations(),
getRelationsToThisName(),
addRelationshipFromName(TaxonNameBase, NameRelationshipType, String)public Set<NameRelationship> getRelationsToThisName()
name relationships
in which this taxon name is involved as a target ("to"-side).
getNameRelations(),
getRelationsFromThisName(),
addRelationshipToName(TaxonNameBase, NameRelationshipType, String)public Set<NomenclaturalStatus> getStatus()
nomenclatural status assigned
to this taxon name according to its corresponding nomenclature code.
This includes the type of the nomenclatural status
and the nomenclatural code rule considered.
NomenclaturalStatus,
NomenclaturalStatusTypepublic void addStatus(NomenclaturalStatus nomStatus)
nomenclatural status
to this taxon name's set of nomenclatural status.
nomStatus - the nomenclatural status to be addedgetStatus()public void removeStatus(NomenclaturalStatus nomStatus)
nomStatus - the nomenclatural status of this taxon name which should be deletedgetStatus()public boolean isOriginalCombination()
basionym
or a replaced synonym
of any other taxon name. Returns "true", if a basionym or a replaced
synonym relationship from this taxon name to another taxon name exists,
false otherwise (also in case this taxon name is the only one in the
homotypical group).
public TaxonNameBase getBasionym()
basionym of this taxon name.
The basionym of a taxon name is its epithet-bringing synonym.
For instance Pinus abies L. was published by Linnaeus and the botanist
Karsten transferred later this taxon to the genus Picea. Therefore,
Pinus abies L. is the basionym of the new combination Picea abies (L.) H. Karst.
If more than one basionym exists one is choosen at radom.
If no basionym exists null is returned.
public Set<TaxonNameBase> getBasionyms()
basionyms of this taxon name.
The basionym of a taxon name is its epithet-bringing synonym.
For instance Pinus abies L. was published by Linnaeus and the botanist
Karsten transferred later this taxon to the genus Picea. Therefore,
Pinus abies L. is the basionym of the new combination Picea abies (L.) H. Karst.
public void addBasionym(T basionym)
basionym of this taxon name.
The basionym relationship will be added to this taxon name
and to the basionym. The basionym cannot have itself a basionym.
The homotypical groups of this taxon name and of the basionym
will be merged.
basionym - the taxon name to be set as the basionym of this taxon namegetBasionym(),
#addBasionym(TaxonNameBase, String)
public NameRelationship addBasionym(T basionym,
Reference citation,
String microcitation,
String ruleConsidered)
basionym of this taxon name
and keeps the nomenclatural rule considered for it. The basionym
relationship will be added to this taxon name and to the basionym.
The basionym cannot have itself a basionym.
The homotypical groups of this taxon name and of the basionym
will be merged.
basionym - the taxon name to be set as the basionym of this taxon nameruleConsidered - the string identifying the nomenclatural rule
getBasionym(),
addBasionym(TaxonNameBase)
public void addReplacedSynonym(T replacedSynonym,
Reference citation,
String microcitation,
String ruleConsidered)
replaced synonym of this taxon name
and keeps the nomenclatural rule considered for it. The replaced synonym
relationship will be added to this taxon name and to the replaced synonym.
The homotypical groups of this taxon name and of the replaced synonym
will be merged.
basionym - the taxon name to be set as the basionym of this taxon nameruleConsidered - the string identifying the nomenclatural rulegetBasionym(),
addBasionym(TaxonNameBase)public void removeBasionyms()
basionym relationship from the set of
name relationships to this taxon name. The same relationhip will be
removed from the set of name relationships from the taxon name
previously used as basionym.
getBasionym(),
addBasionym(TaxonNameBase)public Rank getRank()
rank of this taxon name.
Rankpublic void setRank(Rank rank)
getRank()public INomenclaturalReference getNomenclaturalReference()
nomenclatural reference of this taxon name.
The nomenclatural reference is here meant to be the one publication
this taxon name was originally published in while fulfilling the formal
requirements as specified by the corresponding nomenclatural code.
INomenclaturalReference,
Referencepublic void setNomenclaturalReference(INomenclaturalReference nomenclaturalReference)
nomenclatural reference to this taxon name.
The corresponding nomenclaturally relevant flag will be set to true
as it is obviously used for nomenclatural purposes.
IllegalArgumentException - if parameter nomenclaturalReference is not assignable from INomenclaturalReferencegetNomenclaturalReference()public String getAppendedPhrase()
public void setAppendedPhrase(String appendedPhrase)
getAppendedPhrase()public String getNomenclaturalMicroReference()
nomenclatural reference assigned
to this taxon name. The details describe the exact localisation within
the publication used as nomenclature reference. These are mostly
(implicitly) pages but can also be figures or tables or any other
element of a publication. A nomenclatural micro reference (details)
requires the existence of a nomenclatural reference.
public void setNomenclaturalMicroReference(String nomenclaturalMicroReference)
getNomenclaturalMicroReference()public int getParsingProblem()
IParsable0)
or not (!=0). The the parsing was not successful the value returned
defines in more detail what the problem was. The definition of these values depends
on the parser that has been used for parsing.
getParsingProblem in interface IParsablepublic void setParsingProblem(int parsingProblem)
setParsingProblem in interface IParsableIParsable.getParsingProblem()public void addParsingProblem(ParserProblem problem)
IParsable
addParsingProblem in interface IParsablepublic void removeParsingProblem(ParserProblem problem)
IParsablenull, nothing happens.
removeParsingProblem in interface IParsablepublic void addParsingProblems(int problems)
warnings - public boolean hasProblem()
IParsable
hasProblem in interface IParsable#getHasProblem()public boolean hasProblem(ParserProblem problem)
IParsable
hasProblem in interface IParsablepublic int getProblemStarts()
IParsable
getProblemStarts in interface IParsable#getHasProblem()public void setProblemStarts(int start)
setProblemStarts in interface IParsableIParsable.getProblemStarts()public int getProblemEnds()
IParsable
getProblemEnds in interface IParsable#getHasProblem()public void setProblemEnds(int end)
setProblemEnds in interface IParsableIParsable.getProblemEnds()public Set<TypeDesignationBase> getTypeDesignations()
type designations assigned
to this taxon name.
NameTypeDesignation,
SpecimenTypeDesignationpublic void removeTypeDesignation(TypeDesignationBase typeDesignation)
type designations assigned to
this taxon name. The type designation itself will be nullified.
typeDesignation - the type designation which should be deletedpublic Set<SpecimenTypeDesignation> getSpecimenTypeDesignationsOfHomotypicalGroup()
specimen type designations assigned
to this taxon name. The rank of this taxon name is generally
"species" or below. The specimen type designations include all the
specimens on which the typification of this name is based (which are
exclusively used to typify taxon names belonging to the same
homotypical group to which this taxon name
belongs) and eventually the status of these designations.
SpecimenTypeDesignation,
NameTypeDesignation,
HomotypicalGrouppublic Set<NameTypeDesignation> getNameTypeDesignations()
name type designations assigned
to this taxon name the rank of which must be above "species".
The name type designations include all the taxon names used to typify
this taxon name and eventually the rejected or conserved status
of these designations.
NameTypeDesignation,
SpecimenTypeDesignation
public NameTypeDesignation addNameTypeDesignation(TaxonNameBase typeSpecies,
Reference citation,
String citationMicroReference,
String originalNameString,
NameTypeDesignationStatus status,
boolean isRejectedType,
boolean isConservedType,
boolean isNotDesignated,
boolean addToAllHomotypicNames)
name type designation
to this taxon name's set of type designations.
typeSpecies - the taxon name to be used as type of this taxon namecitation - the reference for this new designationcitationMicroReference - the string with the details (generally pages) within the referenceoriginalNameString - the taxon name string used in the reference to assert this designationisRejectedType - the boolean status for a rejected name type designationisConservedType - the boolean status for a conserved name type designationisLectoType - the boolean status for a lectotype name type designationisNotDesignated - the boolean status for a name type designation without name typeaddToAllHomotypicNames - the boolean indicating whether the name type designation should be
added to all taxon names of the homotypical group this taxon name belongs to
getNameTypeDesignations(),
NameTypeDesignation,
TypeDesignationBase.isNotDesignated()
public NameTypeDesignation addNameTypeDesignation(TaxonNameBase typeSpecies,
Reference citation,
String citationMicroReference,
String originalNameString,
NameTypeDesignationStatus status,
boolean addToAllHomotypicNames)
name type designation
to this taxon name's set of type designations.
typeSpecies - the taxon name to be used as type of this taxon namecitation - the reference for this new designationcitationMicroReference - the string with the details (generally pages) within the referenceoriginalNameString - the taxon name string used in the reference to assert this designationstatus - the name type designation statusaddToAllHomotypicNames - the boolean indicating whether the name type designation should be
added to all taxon names of the homotypical group this taxon name belongs to
getNameTypeDesignations(),
NameTypeDesignation,
TypeDesignationBase.isNotDesignated()public Set<SpecimenTypeDesignation> getSpecimenTypeDesignations()
specimen type designations
that typify this taxon name.
public SpecimenTypeDesignation addSpecimenTypeDesignation(Specimen typeSpecimen,
SpecimenTypeDesignationStatus status,
Reference citation,
String citationMicroReference,
String originalNameString,
boolean isNotDesignated,
boolean addToAllHomotypicNames)
specimen type designation
to this taxon name's set of type designations.
typeSpecimen - the specimen to be used as a type for this taxon namestatus - the specimen type designation statuscitation - the reference for this new specimen type designationcitationMicroReference - the string with the details (generally pages) within the referenceoriginalNameString - the taxon name used in the reference to assert this designationisNotDesignated - the boolean status for a specimen type designation without specimen typeaddToAllHomotypicNames - the boolean indicating whether the specimen type designation should be
added to all taxon names of the homotypical group the typified
taxon name belongs to
getSpecimenTypeDesignations(),
SpecimenTypeDesignationStatus,
SpecimenTypeDesignation,
TypeDesignationBase.isNotDesignated()
public boolean addTypeDesignation(TypeDesignationBase typeDesignation,
boolean addToAllNames)
type designation to this taxon name's set of type designations
typeDesignation - the typeDesignation to be added to this taxon nameaddToAllNames - the boolean indicating whether the type designation should be
added to all taxon names of the homotypical group the typified
taxon name belongs to
IllegalArgumentException - if the type designation already has typified names, an exception
is thrown. We do this to prevent a type designation to be used for multiple taxon names.public HomotypicalGroup getHomotypicalGroup()
homotypical group to which
this taxon name belongs. A homotypical group represents all taxon names
that share the same types.
HomotypicalGrouppublic void setHomotypicalGroup(HomotypicalGroup homotypicalGroup)
public Reference getCitation()
getCitation in interface IReferencedEntitygetNomenclaturalReference()public String getCitationString()
nomenclatural reference citation
and the details assigned to this taxon name.
eu.etaxonomy.cdm.model.reference.INomenclaturalReference#getNomenclaturalCitation(),
getNomenclaturalReference(),
getNomenclaturalMicroReference()public List<ParserProblem> getParsingProblems()
getParsingProblems in interface IParsablepublic String getReferenceYear()
nomenclatural reference for this taxon name, null if there is
no nomenclatural reference.
INomenclaturalReference.getYear()public Set<TaxonBase> getTaxonBases()
taxon bases that refer to this taxon name.
In this context a taxon base means the use of a taxon name by a reference
either as a taxon ("accepted/correct" name) or
as a (junior) synonym.
A taxon name can be used by several distinct references but only once
within a taxonomic treatment (identified by one reference).
getTaxa(),
getSynonyms()public void addTaxonBase(TaxonBase taxonBase)
taxon base
to the set of taxon bases using this taxon name.
taxonBase - the taxon base to be addedgetTaxonBases(),
removeTaxonBase(TaxonBase)public void removeTaxonBase(TaxonBase taxonBase)
taxon bases that refer to this taxon name.
taxonBase - the taxon base which should be removed from the corresponding setgetTaxonBases(),
addTaxonBase(TaxonBase)public Set<Taxon> getTaxa()
taxa ("accepted/correct" names according to any
reference) that are based on this taxon name. This set is a subset of
the set returned by getTaxonBases().
Taxon,
getTaxonBases(),
getSynonyms()public Set<Synonym> getSynonyms()
(junior) synonyms (according to any
reference) that are based on this taxon name. This set is a subset of
the set returned by getTaxonBases().
Synonym,
getTaxonBases(),
getTaxa()public Set<TaxonNameDescription> getDescriptions()
taxon name descriptions assigned
to this taxon name. A taxon name description is a piece of information
concerning the taxon name like for instance the content of its first
publication (protolog) or a picture of this publication.
addDescription(TaxonNameDescription),
removeDescription(TaxonNameDescription),
TaxonNameDescriptionpublic void addDescription(TaxonNameDescription description)
taxon name description
to the set of taxon name descriptions assigned to this taxon name. The
content of the taxonName attribute of the
taxon name description itself will be replaced with this taxon name.
description - the taxon name description to be addedgetDescriptions(),
removeDescription(TaxonNameDescription)public void removeDescription(TaxonNameDescription description)
taxon name descriptions assigned
to this taxon name. The content of the taxonName attribute
of the description itself will be set to "null".
description - the taxon name description which should be removedgetDescriptions(),
addDescription(TaxonNameDescription),
TaxonNameDescription.getTaxonName()public void mergeHomotypicGroups(TaxonNameBase name)
public boolean isHomotypic(TaxonNameBase homoTypicName)
homotypical group as this taxon name (true)
or not (false). Returns "true" only if the homotypical groups of both
taxon names exist and if they are identical.
homoTypicName - the taxon name the homotypical group of which is to be checked
HomotypicalGrouppublic boolean isGroupsBasionym()
false if there are no other names in the group
name -
public boolean isBasionymFor(TaxonNameBase newCombinationName)
fromName - toName -
public void makeGroupsBasionym()
HomotypicalGroup.setGroupBasionym(TaxonNameBase basionymName)public boolean isSupraGeneric()
rank of this
taxon name is higher than the genus rank (true) or not (false).
Suprageneric non viral names are monomials.
Returns false if rank is null.
isGenus(),
isInfraGeneric(),
isSpecies(),
isInfraSpecific()public boolean isGenus()
rank of this
taxon name is the genus rank (true) or not (false). Non viral names with
genus rank are monomials. Returns false if rank is null.
isSupraGeneric(),
isInfraGeneric(),
isSpecies(),
isInfraSpecific()public boolean isInfraGeneric()
rank of this
taxon name is higher than the species rank and lower than the
genus rank (true) or not (false). Infrageneric non viral names are
binomials. Returns false if rank is null.
isSupraGeneric(),
isGenus(),
isSpecies(),
isInfraSpecific()public boolean isSupraSpecific()
rank of this
taxon name is higher than the species rank (true) or not (false).
Returns false if rank is null.
isGenus(),
isInfraGeneric(),
isSpecies(),
isInfraSpecific()public boolean isSpecies()
rank of this
taxon name is the species rank (true) or not (false). Non viral names
with species rank are binomials.
Returns false if rank is null.
isSupraGeneric(),
isGenus(),
isInfraGeneric(),
isInfraSpecific()public boolean isInfraSpecific()
rank of this
taxon name is lower than the species rank (true) or not (false).
Infraspecific non viral names are trinomials.
Returns false if rank is null.
isSupraGeneric(),
isGenus(),
isInfraGeneric(),
isSpecies()public abstract NomenclaturalCode getNomenclaturalCode()
nomenclatural code that governs
the construction of this taxon name since there is no specific
nomenclatural code defined. The real implementention takes place in the
subclasses ViralName, BacterialName,
BotanicalName, CultivarPlantName and
ZoologicalName. Each taxon name is governed by one
and only one nomenclatural code.
isCodeCompliant(),
#getHasProblem()public void setAsGroupsBasionym()
basionymName - public void removeAsGroupsBasionym()
basionymName - public Object clone()
Name descriptions are cloned and not reused.Type designations are cloned and not reused.
clone in class IdentifiableEntity<S extends INameCacheStrategy>eu.etaxonomy.cdm.model.media.IdentifiableEntity#clone(),
Object.clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||