public class CriteriaHierarchy extends CriterionHierarchyNode implements HasDescription, CommonAttributes, XMCDARootElement, Serializable
| Constructor and Description |
|---|
CriteriaHierarchy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addRoot(Criterion aCriterion)
Adds a child to this node if the criterion is not already registered as a root node.
|
boolean |
addRoot(CriterionHierarchyNode rootNode)
Adds a root node to this hierarchy if its criterion is not already registered in an registered root node.
|
Criterion |
getCriterion()
Returns null.
|
Description |
getDescription() |
Set<CriterionHierarchyNode> |
getRootNodes()
Returns the root nodes of this hierarchy.
|
String |
id() |
String |
mcdaConcept() |
String |
name() |
boolean |
removeRoot(Criterion rootCriterion)
Removes from this hierarchy the root whose criterion is the one supplied.
|
boolean |
removeRoot(CriterionHierarchyNode rootNode)
Removes a root node from this node's children.
This is an alias to CriterionHierarchyNode.removeChild(CriterionHierarchyNode). |
void |
setDescription(Description description) |
void |
setId(String id) |
void |
setMcdaConcept(String mcdaConcept) |
void |
setName(String name) |
String |
toString() |
addChild, addChild, deepCopy, getChild, getChild, getChildren, isLeaf, removeChild, removeChild, toStringpublic static final String TAG
public Criterion getCriterion()
getCriterion in class CriterionHierarchyNodepublic String id()
id in interface CommonAttributespublic void setId(String id)
setId in interface CommonAttributespublic String name()
name in interface CommonAttributespublic String mcdaConcept()
mcdaConcept in interface CommonAttributespublic void setName(String name)
setName in interface CommonAttributespublic void setMcdaConcept(String mcdaConcept)
setMcdaConcept in interface CommonAttributespublic void setDescription(Description description)
setDescription in interface HasDescriptionpublic Description getDescription()
getDescription in interface HasDescriptionpublic Set<CriterionHierarchyNode> getRootNodes()
add or remove children from one of the returned
root nodes, this will directly change this hierarchy as well. If you want to manipulate
the hierarchy of the returned root nodes without affecting this hierarchy, call CriterionHierarchyNode.deepCopy() on this
object and then call this method on the copy instead. CriterionHierarchyNode.getChildren().public boolean addRoot(CriterionHierarchyNode rootNode)
CriterionHierarchyNode.addChild(Criterion)rootNode - the root node to be added to this hierarchy.public boolean addRoot(Criterion aCriterion)
CriterionHierarchyNode.addChild(Criterion)public boolean removeRoot(CriterionHierarchyNode rootNode)
CriterionHierarchyNode.removeChild(CriterionHierarchyNode).aChild - the element to be removed.true if the element was removed, false if it was not in this node's children.public boolean removeRoot(Criterion rootCriterion)
CriterionHierarchyNode.removeChild(Criterion).rootCriterion - the criterion for the root to be removed.true if the corresponding root node was found and removed.public String toString()
toString in class CriterionHierarchyNodeCopyright © 2013–2021 Sébastien Bigaret, Patrick Meyer. All rights reserved.