public class InternalStore extends Object implements Store
Modifier and Type | Field and Description |
---|---|
static String |
PRIMARY_KEY_NAME |
Constructor and Description |
---|
InternalStore()
Used to initialize the store.
|
Modifier and Type | Method and Description |
---|---|
Node |
createPath(String absPath) |
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.
|
public static final String PRIMARY_KEY_NAME
public Node getNode(String path) throws PathNotFoundException
Store
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.getNode
in interface Store
path
- The path to the desired node.PathNotFoundException
- Thrown if any element of the requested
path is not valid.public Node getRootNode()
Store
getRootNode
in interface Store
public boolean nodeExists(String path)
Store
nodeExists
in interface Store
path
- The path to the requested node.public Node createPath(String absPath) throws BadPathException, PathNotFoundException
public String getPrimaryKeyName()
Store
getPrimaryKeyName
in interface Store
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.