public interface HstNode
Modifier and Type | Method and Description |
---|---|
void |
addNode(String name,
HstNode hstNode)
Adds or replaces a child HST node with the given name.
|
HstNode |
getNode(String relPath) |
List<HstNode> |
getNodes() |
List<HstNode> |
getNodes(String nodeTypeName) |
String |
getNodeTypeName() |
HstNode |
getParent() |
ValueProvider |
getValueProvider() |
boolean |
isInherited() |
boolean |
isStale() |
void |
markStale()
marks the HstNode as stale: The JCRValueProvider is out-of-date
|
void |
removeNode(String name)
removes child node with
name and does nothing if not present |
void |
setJCRValueProvider(JCRValueProvider valueProvider)
sets the new valueProvider
|
ValueProvider getValueProvider()
HstNode
HstNode getNode(String relPath) throws IllegalArgumentException
relPath
- a path that does not start with a slash, for example 'foo' or 'foo/bar'relPath
or null
if it does not existIllegalArgumentException
- if relPath
is not a valid relPathList<HstNode> getNodes(String nodeTypeName)
HstNode
> of all the child nodes with getNodeTypeName()
equals to nodeTypeName
String getNodeTypeName()
void addNode(String name, HstNode hstNode)
name
- the name for the new HST node.hstNode
- the HST node to add or replace.void removeNode(String name)
name
and does nothing if not presentname
- void setJCRValueProvider(JCRValueProvider valueProvider)
valueProvider
- void markStale()
boolean isStale()
true
when this HstNode is staleboolean isInherited()
true
when this HstNode is inheritedCopyright © 2008-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.