public class TypeDesignationSetManager
extends java.lang.Object
TypeDesignations
for the same typified name.
Type designations are ordered by the base type which is a TaxonName
for NameTypeDesignations
or
in case of SpecimenTypeDesignations
the associate FieldUnit
or the DerivedUnit
if the former is missing. The type designations per base type are furthermore ordered by the TypeDesignationStatusBase
.
The TypeDesignationSetManager also provides string representations of the whole ordered set of all
TypeDesignations
and of the TypeDesignationWorkingSets:
print()
getOrderdTypeDesignationWorkingSets()
... TypeDesignationSetManager.TypeDesignationWorkingSet.getRepresentation()
buildString()
Modifier and Type | Class and Description |
---|---|
class |
TypeDesignationSetManager.TypeDesignationWorkingSet
TypeDesignations which refer to the same FieldUnit (SpecimenTypeDesignation) or TaxonName
(NameTypeDesignation) form a working set.
|
static class |
TypeDesignationSetManager.TypeDesignationWorkingSetType |
Constructor and Description |
---|
TypeDesignationSetManager(java.util.Collection<TypeDesignationBase> typeDesignations) |
TypeDesignationSetManager(java.util.Collection<TypeDesignationBase> typeDesignations,
TaxonName typifiedName) |
TypeDesignationSetManager(HomotypicalGroup group) |
TypeDesignationSetManager(TaxonName typifiedName) |
Modifier and Type | Method and Description |
---|---|
void |
addTypeDesigations(CdmBase containgEntity,
TypeDesignationBase... typeDesignations)
Add one or more TypeDesignations to the manager.
|
protected VersionableEntity |
baseEntity(TypeDesignationBase<?> td) |
void |
buildString() |
void |
buildStringWithCitation() |
TypeDesignationBase<?> |
findTypeDesignation(EntityReference typeDesignationRef) |
eu.etaxonomy.cdm.api.service.name.TypeDesignationSetManager.NameTypeBaseEntityType |
getNameTypeBaseEntityType() |
java.util.LinkedHashMap<TypedEntityReference,TypeDesignationSetManager.TypeDesignationWorkingSet> |
getOrderdTypeDesignationWorkingSets() |
java.util.Collection<TypeDesignationBase<?>> |
getTypeDesignations() |
TaxonName |
getTypifiedName() |
java.lang.String |
getTypifiedNameCache() |
EntityReference |
getTypifiedNameRef() |
boolean |
isPrintCitation() |
boolean |
isUseShortCitation() |
protected TypedEntityReference<VersionableEntity> |
makeEntityReference(VersionableEntity baseEntity) |
protected void |
mapAndSort()
Groups and orders all managed TypeDesignations.
|
java.lang.String |
print() |
void |
setNameTypeBaseEntityType(eu.etaxonomy.cdm.api.service.name.TypeDesignationSetManager.NameTypeBaseEntityType nameTypeBaseEntityType) |
void |
setPrintCitation(boolean printCitation) |
void |
setUseShortCitation(boolean useShortCitation) |
protected java.lang.String |
stringify(NameTypeDesignation td) |
protected java.lang.String |
stringify(TextualTypeDesignation td) |
java.util.List<TaggedText> |
toTaggedText() |
java.util.List<TaggedText> |
toTaggedTextWithCitation() |
public TypeDesignationSetManager(java.util.Collection<TypeDesignationBase> typeDesignations) throws RegistrationValidationException
containgEntity
- taxonName
- RegistrationValidationException
public TypeDesignationSetManager(java.util.Collection<TypeDesignationBase> typeDesignations, TaxonName typifiedName) throws RegistrationValidationException
containgEntity
- taxonName
- RegistrationValidationException
public TypeDesignationSetManager(HomotypicalGroup group) throws RegistrationValidationException
containgEntity
- taxonName
- RegistrationValidationException
public TypeDesignationSetManager(TaxonName typifiedName)
typifiedName2
- public void addTypeDesigations(CdmBase containgEntity, TypeDesignationBase... typeDesignations)
containgEntity
- typeDesignations
- protected void mapAndSort()
containgEntity
- protected VersionableEntity baseEntity(TypeDesignationBase<?> td) throws eu.etaxonomy.cdm.api.service.name.TypeDesignationSetManager.DataIntegrityException
td
- DataIntegrityException
eu.etaxonomy.cdm.api.service.name.TypeDesignationSetManager.DataIntegrityException
protected TypedEntityReference<VersionableEntity> makeEntityReference(VersionableEntity baseEntity)
td
- public void buildString()
public void buildStringWithCitation()
public java.lang.String getTypifiedNameCache()
null
public EntityReference getTypifiedNameRef()
null
public java.util.Collection<TypeDesignationBase<?>> getTypeDesignations()
public TypeDesignationBase<?> findTypeDesignation(EntityReference typeDesignationRef)
ref
- public java.util.LinkedHashMap<TypedEntityReference,TypeDesignationSetManager.TypeDesignationWorkingSet> getOrderdTypeDesignationWorkingSets()
protected java.lang.String stringify(TextualTypeDesignation td)
protected java.lang.String stringify(NameTypeDesignation td)
td
- public java.lang.String print()
public java.util.List<TaggedText> toTaggedText()
public java.util.List<TaggedText> toTaggedTextWithCitation()
public boolean isPrintCitation()
public void setPrintCitation(boolean printCitation)
printCitation
- the printCitation to setpublic TaxonName getTypifiedName()
public void setNameTypeBaseEntityType(eu.etaxonomy.cdm.api.service.name.TypeDesignationSetManager.NameTypeBaseEntityType nameTypeBaseEntityType)
public eu.etaxonomy.cdm.api.service.name.TypeDesignationSetManager.NameTypeBaseEntityType getNameTypeBaseEntityType()
public boolean isUseShortCitation()
public void setUseShortCitation(boolean useShortCitation)
Copyright © 2007-2020 EDIT. All Rights Reserved.