Interface NodeSequence
Extension of
Sequence<Node> which provides methods for
adding and removing nodes by key.-
Method Summary
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
addNode
Add a with the givenkeyand primary node type name.- Parameters:
key- key of the node to addprimaryNodeTypeName- primary node type of the node to add- Returns:
- the newly added node
- Throws:
RepositoryException
-
removeNode
Remove the node with the given key.- Parameters:
key- The key of the node to remove- Throws:
RepositoryException- If there is no node with such a key or another error occurs.
-