Interface NodeSequence
-
- All Superinterfaces:
java.lang.Iterable<javax.jcr.Node>
,Sequence<javax.jcr.Node>
public interface NodeSequence extends Sequence<javax.jcr.Node>
Extension ofSequence<Node>
which provides methods for adding and removing nodes by key.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.jcr.Node
addNode(java.lang.String key, java.lang.String primaryNodeTypeName)
Add a with the givenkey
and primary node type name.void
removeNode(java.lang.String key)
Remove the node with the given key.
-
-
-
Method Detail
-
addNode
javax.jcr.Node addNode(java.lang.String key, java.lang.String primaryNodeTypeName) throws javax.jcr.RepositoryException
Add a with the givenkey
and 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:
javax.jcr.RepositoryException
-
removeNode
void removeNode(java.lang.String key) throws javax.jcr.RepositoryException
Remove the node with the given key.- Parameters:
key
- The key of the node to remove- Throws:
javax.jcr.RepositoryException
- If there is no node with such a key or another error occurs.
-
-