protected static class ItemSequence.NodeSequenceImpl extends ItemSequence implements NodeSequence
ItemSequence.NodeSequenceImpl, ItemSequence.PropertySequenceImplautoSave, errorHandler, order, root, treeManager| Constructor and Description |
|---|
NodeSequenceImpl(TreeManager treeManager,
TreeTraverser.ErrorHandler errorHandler) |
| Modifier and Type | Method and Description |
|---|---|
Node |
addNode(String key,
String primaryNodeTypeName)
Add a with the given
key and primary node type name. |
Node |
getItem(String key)
Retrieve an
Item from this sequence by its key. |
Node |
getParent(String key)
Returns the parent node for the given key.
|
boolean |
hasItem(String key)
Determine whether this sequence contains a specific
key. |
Iterator<Node> |
iterator()
Iterator for the
Items in this sequence. |
void |
removeNode(String key)
Remove the node with the given key.
|
createNodeSequence, createNodeSequence, createPropertySequence, createPropertySequence, getMinimal, getMinimal, getNodeSequence, getPredecessor, getPredecessor, getPropertySequence, getSuccessor, renamePathclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic NodeSequenceImpl(TreeManager treeManager, TreeTraverser.ErrorHandler errorHandler)
public Iterator<Node> iterator()
SequenceItems in this sequence. The order of the items
is implementation specific.public Node getItem(String key) throws RepositoryException
SequenceItem from this sequence by its key. If
the sequence does not contain the key this method throws an
ItemNotFoundException.getItem in interface Sequence<Node>key - The key of the item to retrieve. Must not be
null.key.ItemNotFoundExceptionRepositoryExceptionpublic boolean hasItem(String key) throws RepositoryException
Sequencekey.hasItem in interface Sequence<Node>key - The key to look up.true if this sequence contains key.
False otherwise.RepositoryExceptionpublic Node addNode(String key, String primaryNodeTypeName) throws RepositoryException
NodeSequencekey and primary node type name.addNode in interface NodeSequencekey - key of the node to addprimaryNodeTypeName - primary node type of the node to addRepositoryExceptionpublic void removeNode(String key) throws RepositoryException
NodeSequenceremoveNode in interface NodeSequencekey - The key of the node to removeRepositoryException - If there is no node with such a key or
another error occurs.public Node getParent(String key) throws RepositoryException
ItemSequencegetParent in class ItemSequenceRepositoryExceptionCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.