public class ExtendingNodeWrapper extends ChildWrappingNodeWrapper
InheritanceNodeWrapper: a class supporting content inheritance.
Modifier and Type | Field and Description |
---|---|
protected static String |
EXTENDING_NODE_PROPERTY |
protected static String |
EXTENDING_NODE_PROPERTY_OVERRIDE |
wrapped
Modifier | Constructor and Description |
---|---|
|
ExtendingNodeWrapper(javax.jcr.Node wrappedNode)
Default constructor.
|
|
ExtendingNodeWrapper(javax.jcr.Node wrappedNode,
boolean failOnError)
Call directly for test purposes only.
|
protected |
ExtendingNodeWrapper(javax.jcr.Node wrappedNode,
javax.jcr.Node extendedNode)
Does not support the extends property but chains the two nodes directly.
|
Modifier and Type | Method and Description |
---|---|
javax.jcr.Node |
getNode(String relPath) |
javax.jcr.NodeIterator |
getNodes() |
javax.jcr.NodeIterator |
getNodes(String namePattern) |
javax.jcr.NodeIterator |
getNodes(String[] nameGlobs) |
javax.jcr.PropertyIterator |
getProperties() |
javax.jcr.PropertyIterator |
getProperties(String namePattern) |
javax.jcr.PropertyIterator |
getProperties(String[] nameGlobs) |
javax.jcr.Property |
getProperty(String relPath) |
javax.jcr.Node |
getWrappedNode() |
boolean |
hasNode(String relPath) |
boolean |
hasProperty(String relPath) |
boolean |
isExtending()
Check if node extends another.
|
void |
setWrappedNode(javax.jcr.Node node) |
javax.jcr.Node |
wrapNode(javax.jcr.Node node) |
addNode, addNode, wrapNodeIterator
accept, addMixin, canAddMixin, cancelMerge, checkin, checkout, clone, deepUnwrap, doneMerge, followLifecycleTransition, getAllowedLifecycleTransistions, getAncestor, getBaseVersion, getCorrespondingNodePath, getDefinition, getDepth, getIdentifier, getIndex, getLock, getMixinNodeTypes, getName, getParent, getPath, getPrimaryItem, getPrimaryNodeType, getReferences, getReferences, getSession, getSharedSet, getUUID, getVersionHistory, getWeakReferences, getWeakReferences, hasNodes, hasProperties, holdsLock, initClone, isCheckedOut, isLocked, isModified, isNew, isNode, isNodeType, isSame, isWrapping, lock, merge, orderBefore, refresh, remove, removeMixin, removeShare, removeSharedSet, restore, restore, restore, restoreByLabel, save, setPrimaryType, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, toString, unlock, update
protected static final String EXTENDING_NODE_PROPERTY
protected static final String EXTENDING_NODE_PROPERTY_OVERRIDE
public ExtendingNodeWrapper(javax.jcr.Node wrappedNode)
public ExtendingNodeWrapper(javax.jcr.Node wrappedNode, boolean failOnError)
protected ExtendingNodeWrapper(javax.jcr.Node wrappedNode, javax.jcr.Node extendedNode)
public boolean hasNode(String relPath) throws javax.jcr.RepositoryException
hasNode
in interface javax.jcr.Node
hasNode
in class DelegateNodeWrapper
javax.jcr.RepositoryException
public javax.jcr.Node getNode(String relPath) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
getNode
in interface javax.jcr.Node
getNode
in class ChildWrappingNodeWrapper
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
public javax.jcr.NodeIterator getNodes() throws javax.jcr.RepositoryException
getNodes
in interface javax.jcr.Node
getNodes
in class ChildWrappingNodeWrapper
javax.jcr.RepositoryException
public javax.jcr.NodeIterator getNodes(String[] nameGlobs) throws javax.jcr.RepositoryException
getNodes
in interface javax.jcr.Node
getNodes
in class ChildWrappingNodeWrapper
javax.jcr.RepositoryException
public javax.jcr.NodeIterator getNodes(String namePattern) throws javax.jcr.RepositoryException
getNodes
in interface javax.jcr.Node
getNodes
in class ChildWrappingNodeWrapper
javax.jcr.RepositoryException
public boolean hasProperty(String relPath) throws javax.jcr.RepositoryException
hasProperty
in interface javax.jcr.Node
hasProperty
in class DelegateNodeWrapper
javax.jcr.RepositoryException
public javax.jcr.Property getProperty(String relPath) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
getProperty
in interface javax.jcr.Node
getProperty
in class DelegateNodeWrapper
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
public javax.jcr.PropertyIterator getProperties() throws javax.jcr.RepositoryException
getProperties
in interface javax.jcr.Node
getProperties
in class DelegateNodeWrapper
javax.jcr.RepositoryException
public javax.jcr.PropertyIterator getProperties(String[] nameGlobs) throws javax.jcr.RepositoryException
getProperties
in interface javax.jcr.Node
getProperties
in class DelegateNodeWrapper
javax.jcr.RepositoryException
public javax.jcr.PropertyIterator getProperties(String namePattern) throws javax.jcr.RepositoryException
getProperties
in interface javax.jcr.Node
getProperties
in class DelegateNodeWrapper
javax.jcr.RepositoryException
public javax.jcr.Node wrapNode(javax.jcr.Node node)
wrapNode
in interface NodeWrapperFactory
wrapNode
in class ChildWrappingNodeWrapper
public javax.jcr.Node getWrappedNode()
getWrappedNode
in class DelegateNodeWrapper
public void setWrappedNode(javax.jcr.Node node)
setWrappedNode
in class DelegateNodeWrapper
public boolean isExtending()
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.