Package org.hippoecm.hst.provider.jcr
Interface JCRValueProvider
- All Superinterfaces:
Serializable
,ValueProvider
-
Method Summary
Modifier and TypeMethodDescriptionvoid
detach()
Method for detaching the jcr node.void
flush()
Flushes all fetched data kept in instance variablesreturns theNode
that was used to create this value provider with ornull
when the node is already detachedreturns the parentNode
of this value provider ornull
when the node is detached.boolean
Test whether the jcr node is detached or notboolean
isNodeType
(String nodeType) Methods inherited from interface org.hippoecm.hst.provider.ValueProvider
getBoolean, getBooleans, getCanonicalPath, getDate, getDates, getDouble, getDoubles, getIdentifier, getLong, getLongs, getName, getPath, getProperties, getPropertyMap, getString, getStrings, hasProperty
-
Method Details
-
getJcrNode
Node getJcrNode()returns theNode
that was used to create this value provider with ornull
when the node is already detached- Returns:
- the jcr node
-
getDisplayName
String getDisplayName()- Returns:
- the display name of the backing jcr node according to
HippoNode.getDisplayName()
-
getParentJcrNode
Node getParentJcrNode()returns the parentNode
of this value provider ornull
when the node is detached. If the node is the jcr rootNode,null
will be returned- Returns:
- the parent Node or
null
if the node is null or there is no parent
-
detach
void detach()Method for detaching the jcr node. After calling this method, the jcr node is not available anymore -
isDetached
boolean isDetached()Test whether the jcr node is detached or not- Returns:
- true if the node is detached
-
isNodeType
- Parameters:
nodeType
-- Returns:
- true when the underlying jcr node is of type nodeType
-
flush
void flush()Flushes all fetched data kept in instance variables
-