public interface NodeSequence extends Sequence<javax.jcr.Node>
Sequence<Node>
which provides methods for
adding and removing nodes by key.Modifier and Type | Method and Description |
---|---|
javax.jcr.Node |
addNode(String key,
String primaryNodeTypeName)
Add a with the given
key and primary node type name. |
void |
removeNode(String key)
Remove the node with the given key.
|
javax.jcr.Node addNode(String key, String primaryNodeTypeName) throws javax.jcr.RepositoryException
key
and primary node type name.key
- key of the node to addprimaryNodeTypeName
- primary node type of the node to addjavax.jcr.RepositoryException
void removeNode(String key) throws javax.jcr.RepositoryException
key
- The key of the node to removejavax.jcr.RepositoryException
- If there is no node with such a key or
another error occurs.Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.