|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object eu.etaxonomy.cdm.model.common.CdmBase eu.etaxonomy.cdm.model.common.VersionableEntity eu.etaxonomy.cdm.model.common.AnnotatableEntity eu.etaxonomy.cdm.model.common.IdentifiableEntity eu.etaxonomy.cdm.model.taxon.TaxonomicTree
@Indexed(index="eu.etaxonomy.cdm.model.taxon.TaxonomicTree") public class TaxonomicTree
Field Summary |
---|
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 | |
---|---|
protected |
TaxonomicTree()
|
protected |
TaxonomicTree(String name,
ReferenceBase reference,
Language language)
|
Method Summary | |
---|---|
TaxonNode |
addChildNode(TaxonNode childNode,
ReferenceBase citation,
String microCitation,
Synonym synonymToBeUsed)
Adds a taxon node as a child of the ITreeNode |
TaxonNode |
addChildTaxon(Taxon taxon,
ReferenceBase citation,
String microCitation,
Synonym synonymToBeUsed)
Adds a taxon as a child of the ITreeNode |
TaxonNode |
addParentChild(Taxon parent,
Taxon child,
ReferenceBase citation,
String microCitation)
Relates two taxa as parent-child nodes within a taxonomic tree. |
int |
compareTo(Object o)
|
boolean |
deleteChildNode(TaxonNode node)
This recursively removes all child nodes from this node and from this taxonomic view. |
String |
generateTitle()
|
Set<TaxonNode> |
getAllNodes()
Returns a set containing all nodes in this taxonomic tree. |
Set<TaxonNode> |
getChildNodes()
|
ReferenceBase |
getCitation()
|
String |
getMicroReference()
|
LanguageString |
getName()
|
TaxonNode |
getNode(Taxon taxon)
Checks if the given taxon is part of this tree. |
ReferenceBase |
getReference()
|
TaxonNode |
getTopmostNode(Taxon taxon)
Checks if the taxon is a direct child of this tree and returns the according node if true. |
boolean |
hasChildNodes()
Whether this TreeNode has child nodes attached |
boolean |
isTaxonInTree(Taxon taxon)
Checks if the given taxon is part of this tree. |
boolean |
isTopmostInTree(Taxon taxon)
Checks if the given taxon is one of the topmost taxa in this tree. |
void |
makeTopmostNodeChildOfOtherNode(TaxonNode topmostNode,
TaxonNode otherNode,
ReferenceBase ref,
String microReference)
Appends an existing topmost node to another node of this tree. |
static TaxonomicTree |
NewInstance(String name)
|
static TaxonomicTree |
NewInstance(String name,
Language language)
|
static TaxonomicTree |
NewInstance(String name,
ReferenceBase reference)
|
static TaxonomicTree |
NewInstance(String name,
ReferenceBase reference,
Language language)
|
protected boolean |
removeChildNode(TaxonNode node)
|
void |
setMicroReference(String microReference)
|
void |
setName(LanguageString name)
|
void |
setReference(ReferenceBase reference)
|
Methods inherited from class eu.etaxonomy.cdm.model.common.IdentifiableEntity |
---|
addCredit, addCredit, addExtension, addExtension, addRights, addSource, addSource, clone, compareTo, getCacheStrategy, getCredits, getCredits, getData, getExtensions, getLsid, getRights, getSources, getTitleCache, getTruncatedCache, initListener, isProtectedTitleCache, 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, 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, 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.IAnnotatableEntity |
---|
addAnnotation, addMarker, getAnnotations, getMarkers, removeAnnotation, removeMarker |
Methods inherited from interface eu.etaxonomy.cdm.model.common.IVersionableEntity |
---|
getUpdated, getUpdatedBy, setUpdated, setUpdatedBy |
Methods inherited from interface eu.etaxonomy.cdm.model.common.ICdmBase |
---|
getCreated, getCreatedBy, getId, getUuid, setCreated, setCreatedBy, setId, setUuid |
Constructor Detail |
---|
protected TaxonomicTree(String name, ReferenceBase reference, Language language)
protected TaxonomicTree()
Method Detail |
---|
public static TaxonomicTree NewInstance(String name)
public static TaxonomicTree NewInstance(String name, Language language)
public static TaxonomicTree NewInstance(String name, ReferenceBase reference)
public static TaxonomicTree NewInstance(String name, ReferenceBase reference, Language language)
public TaxonNode addChildNode(TaxonNode childNode, ReferenceBase citation, String microCitation, Synonym synonymToBeUsed)
ITreeNode
addChildNode
in interface ITreeNode
public TaxonNode addChildTaxon(Taxon taxon, ReferenceBase citation, String microCitation, Synonym synonymToBeUsed)
ITreeNode
addChildTaxon
in interface ITreeNode
public boolean deleteChildNode(TaxonNode node)
ITreeNode
deleteChildNode
in interface ITreeNode
protected boolean removeChildNode(TaxonNode node)
node
-
public void makeTopmostNodeChildOfOtherNode(TaxonNode topmostNode, TaxonNode otherNode, ReferenceBase ref, String microReference) throws IllegalArgumentException
topmostNode
- otherNode
- ref
- microReference
-
IllegalArgumentException
public boolean isTaxonInTree(Taxon taxon)
taxon
-
public TaxonNode getNode(Taxon taxon)
taxon
-
public boolean isTopmostInTree(Taxon taxon)
taxon
-
public TaxonNode getTopmostNode(Taxon taxon)
taxon
-
public TaxonNode addParentChild(Taxon parent, Taxon child, ReferenceBase citation, String microCitation) throws IllegalStateException
parent
- child
- citation
- microCitation
-
IllegalStateException
- If the child is a child of another parent alreadypublic ReferenceBase getCitation()
getCitation
in interface IReferencedEntity
public LanguageString getName()
public void setName(LanguageString name)
public Set<TaxonNode> getAllNodes()
public Set<TaxonNode> getChildNodes()
getChildNodes
in interface ITreeNode
public ReferenceBase getReference()
getReference
in interface ITreeNode
public void setReference(ReferenceBase reference)
public String getMicroReference()
getMicroReference
in interface ITreeNode
public void setMicroReference(String microReference)
microReference
- the microReference to setpublic String generateTitle()
generateTitle
in interface IIdentifiableEntity
generateTitle
in class IdentifiableEntity
public int compareTo(Object o)
public boolean hasChildNodes()
ITreeNode
hasChildNodes
in interface ITreeNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |