info.magnolia.jcr.wrapper
Class I18nNodeWrapper

java.lang.Object
  extended by info.magnolia.jcr.wrapper.DelegateNodeWrapper
      extended by info.magnolia.jcr.wrapper.ChildWrappingNodeWrapper
          extended by info.magnolia.jcr.wrapper.I18nNodeWrapper
All Implemented Interfaces:
NodeWrapperFactory, Cloneable, javax.jcr.Item, javax.jcr.Node

public class I18nNodeWrapper
extends ChildWrappingNodeWrapper

A Node wrapper implementation which knows about i18n support and uses it to select child nodes and properties.

Version:
$Id$
See Also:
I18nContentSupport

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
I18nNodeWrapper(javax.jcr.Node wrapped)
           
 
Method Summary
 javax.jcr.Node getNode(String relPath)
           
 javax.jcr.Property getProperty(String relPath)
           
 javax.jcr.Node wrapNode(javax.jcr.Node node)
           
 
Methods inherited from class info.magnolia.jcr.wrapper.ChildWrappingNodeWrapper
addNode, addNode, getNodes, getNodes, getNodes, 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, getProperties, getProperties, getProperties, getReferences, getReferences, getSession, getSharedSet, getUUID, getVersionHistory, getWeakReferences, getWeakReferences, 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
 

Constructor Detail

I18nNodeWrapper

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

wrapNode

public javax.jcr.Node wrapNode(javax.jcr.Node node)
Specified by:
wrapNode in interface NodeWrapperFactory
Overrides:
wrapNode in class ChildWrappingNodeWrapper

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

getNode

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


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