public class CriteriaSetsHierarchy extends CriteriaSetHierarchyNode implements HasDescription, CommonAttributes, XMCDARootElement, Serializable
| Constructor and Description |
|---|
CriteriaSetsHierarchy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addRoot(CriteriaSet aCriteriaSet)
Adds a child to this node if the criteriaSet is not already registered as a root node.
|
boolean |
addRoot(CriteriaSetHierarchyNode rootNode)
Adds a root node to this hierarchy if its criteriaSet is not already registered in an registered root node.
|
CriteriaSet |
getCriteriaSet()
Returns null.
|
Description |
getDescription() |
Set<CriteriaSetHierarchyNode> |
getRootNodes()
Returns the root nodes of this hierarchy.
|
String |
id() |
String |
mcdaConcept() |
String |
name() |
boolean |
removeRoot(CriteriaSet rootCriteriaSet)
Removes from this hierarchy the root whose criteriaSet is the one supplied.
|
boolean |
removeRoot(CriteriaSetHierarchyNode rootNode)
Removes a root node from this node's children.
This is an alias to CriteriaSetHierarchyNode.removeChild(CriteriaSetHierarchyNode). |
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 CriteriaSet getCriteriaSet()
getCriteriaSet in class CriteriaSetHierarchyNodepublic 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<CriteriaSetHierarchyNode> 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 CriteriaSetHierarchyNode.deepCopy() on this
object and then call this method on the copy instead. CriteriaSetHierarchyNode.getChildren().public boolean addRoot(CriteriaSetHierarchyNode rootNode)
CriteriaSetHierarchyNode.addChild(CriteriaSet)rootNode - the root node to be added to this hierarchy.public boolean addRoot(CriteriaSet aCriteriaSet)
CriteriaSetHierarchyNode.addChild(CriteriaSet)public boolean removeRoot(CriteriaSetHierarchyNode rootNode)
CriteriaSetHierarchyNode.removeChild(CriteriaSetHierarchyNode).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(CriteriaSet rootCriteriaSet)
CriteriaSetHierarchyNode.removeChild(CriteriaSet).rootCriteriaSet - the criteriaSet for the root to be removed.true if the corresponding root node was found and removed.public String toString()
toString in class CriteriaSetHierarchyNodeCopyright © 2013–2021 Sébastien Bigaret, Patrick Meyer. All rights reserved.