org.hippoecm.hst.configuration.model
Interface HstNode

All Known Subinterfaces:
HstSiteRootNode
All Known Implementing Classes:
HstNodeImpl, HstSiteConfigurationRootNodeImpl, HstSiteRootNodeImpl

public interface HstNode


Method Summary
 void addNode(String name, HstNode hstNode)
          add a child hstNode with 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
 

Method Detail

getValueProvider

ValueProvider getValueProvider()
Returns:
the value provider for this HstNode

getNode

HstNode getNode(String relPath)
                throws IllegalArgumentException
Parameters:
relPath - a path that does not start with a slash, for example 'foo' or 'foo/bar'
Returns:
the descendant node at relPath or null if it does not exist
Throws:
IllegalArgumentException - if relPath is not a valid relPath

getNodes

List<HstNode> getNodes()
Returns:
List<HstNode> of all the child nodes

getNodes

List<HstNode> getNodes(String nodeTypeName)
Returns:
List<HstNode> of all the child nodes with getNodeTypeName() equals to nodeTypeName

getNodeTypeName

String getNodeTypeName()
Returns:
the node type of the backing provider

getParent

HstNode getParent()
Returns:
the parent of this HstNode or null when there is no parent.

addNode

void addNode(String name,
             HstNode hstNode)
add a child hstNode with name. If there already exists an HstNode with name equal name, the existing HstNode is replaced. Since the HstNode's are used for the HST config model that does not support same name sibblings this is not a problem

Parameters:
name -
hstNode -

removeNode

void removeNode(String name)
removes child node with name and does nothing if not present

Parameters:
name -

setJCRValueProvider

void setJCRValueProvider(JCRValueProvider valueProvider)
sets the new valueProvider

Parameters:
valueProvider -

markStale

void markStale()
marks the HstNode as stale: The JCRValueProvider is out-of-date


isStale

boolean isStale()
Returns:
true when this HstNode is stale

isInherited

boolean isInherited()
Returns:
true when this HstNode is inherited


Copyright © 2008-2012 Hippo. All Rights Reserved.