public interface Store
Node
objects. The Store encapsulates
a bi-directional tree of nodes with a single root node. This structure
enforces a fully connected node tree structures under a single Store. The
Store itself has very limited functionality, relying on most tree navigation
to be done through the root node itself.Modifier and Type | Method and Description |
---|---|
Node |
getNode(String path)
Retrieves a node based on a path.
|
String |
getPrimaryKeyName()
Identifies the property that is used as the 'primary' key for this
type of store.
|
Node |
getRootNode()
Returns the Root Node.
|
boolean |
nodeExists(String path)
Checks to see if a node exists at the given path.
|
Node getNode(String path) throws PathNotFoundException
store.getNode("/node3/node4")
store.getNode("/../nodeX/nodeY")
store.getNode("/node3/../nodeX")
store.getNode("/node1/node2").getParent().getNode("nodeX/nodeY")
This store is intended for INTERNAL USE ONLY. This is not intended for use
in custom configuration, data, or cartridge handlers.path
- The path to the desired node.PathNotFoundException
- Thrown if any element of the requested
path is not valid.Node getRootNode()
boolean nodeExists(String path)
path
- The path to the requested node.String getPrimaryKeyName()
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.