|
||||||||||
| 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.taxon.TaxonNode
@Entity @Indexed(index="eu.etaxonomy.cdm.model.taxon.TaxonNode") public class TaxonNode
| Field Summary |
|---|
| 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 |
TaxonNode()
|
protected |
TaxonNode(Taxon taxon)
to create nodes either use Classification.addChildTaxon(Taxon, Reference, String, Synonym)
or addChildTaxon(Taxon, Reference, String, Synonym) |
protected |
TaxonNode(Taxon taxon,
Classification classification)
Deprecated. setting of classification is handled in the addTaxonNode() method, use TaxonNode(taxon) instead |
| Method Summary | |
|---|---|
TaxonNode |
addChildNode(TaxonNode childNode,
Reference reference,
String microReference,
Synonym synonymToBeUsed)
Moves a taxon node to a new parent. |
TaxonNode |
addChildTaxon(Taxon taxon,
Reference citation,
String microCitation,
Synonym synonymToBeUsed)
Adds a taxon as a child of the ITreeNode |
Object |
clone()
Clones this taxon node. |
protected TaxonNode |
cloneDescendants()
Returns a set containing a clone of this node and of all nodes that are descendants of this node |
boolean |
delete()
Remove this taxonNode From its taxonomic parent |
boolean |
deleteChildNode(TaxonNode node)
This recursively removes all child nodes from this node and from this taxonomic view. |
protected Set<TaxonNode> |
getAncestors()
Returns a |
Set<TaxonNode> |
getChildNodes()
|
Classification |
getClassification()
|
int |
getCountChildren()
|
protected Set<TaxonNode> |
getDescendants()
Returns a set containing this node and all nodes that are descendants of this node |
String |
getMicroReference()
|
TaxonNode |
getParent()
|
ITreeNode |
getParentTreeNode()
|
Reference |
getReference()
The reference for the parent child relationship |
Synonym |
getSynonymToBeUsed()
|
Taxon |
getTaxon()
|
boolean |
hasChildNodes()
Whether this taxon has child nodes |
boolean |
isAncestor(TaxonNode possibleChild)
Whether this TaxonNode is an ascendant of the given TaxonNode |
boolean |
isDescendant(TaxonNode possibleParent)
Whether this TaxonNode is a descendant of the given TaxonNode Caution: use this method with care on big branches. |
boolean |
isTopmostNode()
Whether this TaxonNode is a direct child of the classification TreeNode |
protected boolean |
removeChildNode(TaxonNode childNode)
Removes the child node from this node. |
protected void |
setClassification(Classification classification)
THIS METHOD SHOULD NOT BE CALLED! invisible part of the bidirectional relationship, for public use TaxonomicView.addRoot() or TaxonNode.addChild() |
protected void |
setCountChildren(int countChildren)
|
void |
setMicroReference(String microReference)
|
protected void |
setParent(ITreeNode parent)
Sets the parent of this taxon node. |
protected void |
setParentTreeNode(ITreeNode parent)
Sets the parent of this taxon node to the given parent. |
void |
setReference(Reference reference)
|
void |
setSynonymToBeUsed(Synonym synonymToBeUsed)
|
protected void |
setTaxon(Taxon taxon)
|
| 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, toString |
| 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, hasMarker, hasMarker, 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 TaxonNode()
protected TaxonNode(Taxon taxon,
Classification classification)
Classification.addChildTaxon(Taxon, Reference, String, Synonym)
or addChildTaxon(Taxon, Reference, String, Synonym)
taxon - classification - protected TaxonNode(Taxon taxon)
Classification.addChildTaxon(Taxon, Reference, String, Synonym)
or addChildTaxon(Taxon, Reference, String, Synonym)
taxon - | Method Detail |
|---|
public TaxonNode addChildTaxon(Taxon taxon,
Reference citation,
String microCitation,
Synonym synonymToBeUsed)
ITreeNode
addChildTaxon in interface ITreeNode
public TaxonNode addChildNode(TaxonNode childNode,
Reference reference,
String microReference,
Synonym synonymToBeUsed)
addChildNode in interface ITreeNodechildNode - the taxon node to be moved to the new parent
public boolean deleteChildNode(TaxonNode node)
ITreeNode
deleteChildNode in interface ITreeNodeprotected boolean removeChildNode(TaxonNode childNode)
childNode -
public boolean delete()
public Taxon getTaxon()
protected void setTaxon(Taxon taxon)
public ITreeNode getParentTreeNode()
public TaxonNode getParent()
protected void setParent(ITreeNode parent)
parent - setParentTreeNode(ITreeNode)protected void setParentTreeNode(ITreeNode parent)
parent - public Classification getClassification()
protected void setClassification(Classification classification)
classification - public Set<TaxonNode> getChildNodes()
getChildNodes in interface ITreeNodeprotected Set<TaxonNode> getDescendants()
protected TaxonNode cloneDescendants()
protected Set<TaxonNode> getAncestors()
public Reference getReference()
getReference in interface ITreeNodeITreeNode.getReference()public void setReference(Reference reference)
public String getMicroReference()
getMicroReference in interface ITreeNodeITreeNode.getMicroReference()public void setMicroReference(String microReference)
public int getCountChildren()
protected void setCountChildren(int countChildren)
countChildren - public Synonym getSynonymToBeUsed()
public void setSynonymToBeUsed(Synonym synonymToBeUsed)
public boolean isTopmostNode()
public boolean isDescendant(TaxonNode possibleParent)
possibleParent -
public boolean isAncestor(TaxonNode possibleChild)
possibleChild -
public boolean hasChildNodes()
hasChildNodes in interface ITreeNodepublic Object clone()
clone in class AnnotatableEntityeu.etaxonomy.cdm.model.media.IdentifiableEntity#clone(),
Object.clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||