public interface OsidNode extends Identifiable, Containable
A node interface for hierarchical objects. The Id
of the
node is the Id
of the object represented at this node.
Modifier and Type | Method and Description |
---|---|
IdList |
getChildIds()
Gets the children of this node.
|
IdList |
getParentIds()
Gets the parents of this node.
|
boolean |
hasChildren()
Tests if any children are available in this node structure.
|
boolean |
hasParents()
Tests if any parents are available in this node structure.
|
boolean |
isLeaf()
Tests if this node is a leaf in the hierarchy (has no children).
|
boolean |
isRoot()
Tests if this node is a root in the hierarchy (has no parents).
|
getId, isCurrent
isSequestered
boolean isRoot()
isRoot()
and
hasParents()
is false, the parents of this node may be
accessed thorugh another node structure retrieval. true
if this node is a root in the hierarchy,
false
otherwisemandatory
- This method must be implemented. boolean hasParents()
true
if this node has parents, false
otherwisemandatory
- This method must be implemented. IdList getParentIds()
mandatory
- This method must be implemented. boolean isLeaf()
isLeaf()
and
hasChildren()
is false, the children of this node may
be accessed thorugh another node structure retrieval. true
if this node is a leaf in the hierarchy,
false
otherwisemandatory
- This method must be implemented. boolean hasChildren()
true
if this node has children, false
otherwisemandatory
- This method must be implemented. IdList getChildIds()
mandatory
- This method must be implemented.