Package org.onosproject.store.service
Interface DocumentTreeNode<V>
-
- Type Parameters:
V
- value type
@NotThreadSafe public interface DocumentTreeNode<V>
ADocumentTree
node.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DocumentTreeNode<V>
child(String relativePath)
Returns the child node of this node with the specified relative path name.Iterator<DocumentTreeNode<V>>
children()
Returns the children of this node.default boolean
hasChildren()
Returns if this node has one or more children.DocumentPath
path()
Returns the path to this node in aDocumentTree
.Versioned<V>
value()
Returns the value of this node.
-
-
-
Method Detail
-
path
DocumentPath path()
Returns the path to this node in aDocumentTree
.- Returns:
- absolute path
-
children
Iterator<DocumentTreeNode<V>> children()
Returns the children of this node.- Returns:
- iterator for this node's children
-
child
DocumentTreeNode<V> child(String relativePath)
Returns the child node of this node with the specified relative path name.- Parameters:
relativePath
- relative path name for the child node.- Returns:
- child node; this method returns
null
if no such child exists
-
hasChildren
default boolean hasChildren()
Returns if this node has one or more children.- Returns:
true
if yes,false
otherwise
-
-