info.magnolia.jcr.wrapper
Class PropertyAndChildWrappingNodeWrapper

java.lang.Object
  extended by info.magnolia.jcr.wrapper.DelegateNodeWrapper
      extended by info.magnolia.jcr.wrapper.ChildWrappingNodeWrapper
          extended by info.magnolia.jcr.wrapper.PropertyAndChildWrappingNodeWrapper
All Implemented Interfaces:
NodeWrapperFactory, PropertyWrapperFactory, Cloneable, javax.jcr.Item, javax.jcr.Node
Direct Known Subclasses:
HTMLEscapingNodeWrapper, VersionedNode

public abstract class PropertyAndChildWrappingNodeWrapper
extends ChildWrappingNodeWrapper
implements PropertyWrapperFactory

Node wrapper that wraps all returned properties and wraps all returned nodes to extend its property wrapping scheme to an entire hierarchy.

Version:
$Id$

Field Summary
 
Fields inherited from class info.magnolia.jcr.wrapper.DelegateNodeWrapper
wrapped
 
Fields inherited from interface javax.jcr.Node
JCR_CHILD_NODE_DEFINITION, JCR_CONTENT, JCR_FROZEN_NODE, JCR_PROPERTY_DEFINITION, JCR_ROOT_VERSION, JCR_VERSION_LABELS
 
Constructor Summary
PropertyAndChildWrappingNodeWrapper(javax.jcr.Node wrapped)
           
 
Method Summary
 javax.jcr.PropertyIterator getProperties()
           
 javax.jcr.PropertyIterator getProperties(String namePattern)
           
 javax.jcr.PropertyIterator getProperties(String[] nameGlobs)
           
 javax.jcr.Property getProperty(String relPath)
           
 javax.jcr.PropertyIterator getReferences()
           
 javax.jcr.PropertyIterator getReferences(String name)
           
 javax.jcr.PropertyIterator getWeakReferences()
           
 javax.jcr.PropertyIterator getWeakReferences(String name)
           
protected  javax.jcr.PropertyIterator wrapPropertyIterator(javax.jcr.PropertyIterator propertyIterator)
           
 
Methods inherited from class info.magnolia.jcr.wrapper.ChildWrappingNodeWrapper
addNode, addNode, getNode, getNodes, getNodes, getNodes, wrapNode, wrapNodeIterator
 
Methods inherited from class info.magnolia.jcr.wrapper.DelegateNodeWrapper
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, getSession, getSharedSet, getUUID, getVersionHistory, getWrappedNode, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, initClone, isCheckedOut, isLocked, isModified, isNew, isNode, isNodeType, isSame, 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, setWrappedNode, toString, unlock, update
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface info.magnolia.jcr.wrapper.PropertyWrapperFactory
wrapProperty
 

Constructor Detail

PropertyAndChildWrappingNodeWrapper

public PropertyAndChildWrappingNodeWrapper(javax.jcr.Node wrapped)
Method Detail

getProperties

public javax.jcr.PropertyIterator getProperties()
                                         throws javax.jcr.RepositoryException
Specified by:
getProperties in interface javax.jcr.Node
Overrides:
getProperties in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

getProperties

public javax.jcr.PropertyIterator getProperties(String namePattern)
                                         throws javax.jcr.RepositoryException
Specified by:
getProperties in interface javax.jcr.Node
Overrides:
getProperties in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

getProperties

public javax.jcr.PropertyIterator getProperties(String[] nameGlobs)
                                         throws javax.jcr.RepositoryException
Specified by:
getProperties in interface javax.jcr.Node
Overrides:
getProperties in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

getWeakReferences

public javax.jcr.PropertyIterator getWeakReferences()
                                             throws javax.jcr.RepositoryException
Specified by:
getWeakReferences in interface javax.jcr.Node
Overrides:
getWeakReferences in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

getProperty

public javax.jcr.Property getProperty(String relPath)
                               throws javax.jcr.PathNotFoundException,
                                      javax.jcr.RepositoryException
Specified by:
getProperty in interface javax.jcr.Node
Overrides:
getProperty in class DelegateNodeWrapper
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException

getReferences

public javax.jcr.PropertyIterator getReferences(String name)
                                         throws javax.jcr.RepositoryException
Specified by:
getReferences in interface javax.jcr.Node
Overrides:
getReferences in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

getWeakReferences

public javax.jcr.PropertyIterator getWeakReferences(String name)
                                             throws javax.jcr.RepositoryException
Specified by:
getWeakReferences in interface javax.jcr.Node
Overrides:
getWeakReferences in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

getReferences

public javax.jcr.PropertyIterator getReferences()
                                         throws javax.jcr.RepositoryException
Specified by:
getReferences in interface javax.jcr.Node
Overrides:
getReferences in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException

wrapPropertyIterator

protected javax.jcr.PropertyIterator wrapPropertyIterator(javax.jcr.PropertyIterator propertyIterator)


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.