public interface NodeSequence extends Sequence<Node>
Sequence<Node>
which provides methods for
adding and removing nodes by key.Modifier and Type | Method and Description |
---|---|
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.
|
getItem, hasItem, iterator
forEach, spliterator
Node addNode(String key, String primaryNodeTypeName) throws RepositoryException
key
and primary node type name.key
- key of the node to addprimaryNodeTypeName
- primary node type of the node to addRepositoryException
void removeNode(String key) throws RepositoryException
key
- The key of the node to removeRepositoryException
- If there is no node with such a key or
another error occurs.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.