public class RootNode
extends java.lang.Object
Constructor and Description |
---|
RootNode()
Construct a new RootNode with an empty set of children DataNode
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(DataNode n)
Add a child DataNode to the RootNode.
|
java.util.SortedSet<DataNode> |
getAllChildren(java.lang.String... schemas)
returns all the descendants of the current node with the schema name
|
java.util.Set<DataNode> |
getChildren()
Retrieve all the child DataNodes
|
java.util.SortedSet<DataNode> |
getChildren(java.lang.String schema)
returns all the descendants of the current node with the schema name
|
boolean |
hasChildren()
Returns whether or not the node has any children
|
void |
removeChild(DataNode n)
Remove a child DataNode
|
public RootNode()
public java.util.Set<DataNode> getChildren()
public void addChild(DataNode n)
n
- public void removeChild(DataNode n)
n
- @NotNull public java.util.SortedSet<DataNode> getChildren(@NotNull java.lang.String schema)
schema
- The schema to get@NotNull public java.util.SortedSet<DataNode> getAllChildren(@NotNull java.lang.String... schemas)
schemas
- An array of schemas to get (empty means to get all children by any name)public boolean hasChildren()