info.magnolia.beancoder
Class MgnlNode

java.lang.Object
  extended by info.magnolia.beancoder.MgnlNode
All Implemented Interfaces:
openwfe.org.jcr.Item, openwfe.org.jcr.Node

public class MgnlNode
extends Object
implements openwfe.org.jcr.Node

Magnolia wrapper for a node.


Constructor Summary
MgnlNode(Content mnode)
           
 
Method Summary
 openwfe.org.jcr.Node addNode(String newNodeName)
           
 String getName()
           
 openwfe.org.jcr.Node getNode(String relPath)
           
 Iterator<MgnlNode> getNodes()
           
 openwfe.org.jcr.Item getParent()
           
 String getPath()
           
 Iterator<MgnlProperty> getProperties()
           
 openwfe.org.jcr.Property getProperty(String propertyName)
           
 Object getWrappedInstance()
           
 boolean hasNode(String relPath)
           
 boolean hasProperty(String propertyName)
           
 boolean isNode()
           
 void remove()
           
 void save()
           
 openwfe.org.jcr.Property setProperty(String propertyName, InputStream value)
           
 openwfe.org.jcr.Property setProperty(String propertyName, long value)
           
 openwfe.org.jcr.Property setProperty(String string, Object object)
           
 openwfe.org.jcr.Property setProperty(String propertyName, String value)
           
 openwfe.org.jcr.Property setProperty(String propertyName, String valueStr, int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MgnlNode

public MgnlNode(Content mnode)
Method Detail

getProperties

public Iterator<MgnlProperty> getProperties()
                                     throws openwfe.org.jcr.JcrException
Specified by:
getProperties in interface openwfe.org.jcr.Node
Throws:
openwfe.org.jcr.JcrException

getNodes

public Iterator<MgnlNode> getNodes()
                            throws openwfe.org.jcr.JcrException
Specified by:
getNodes in interface openwfe.org.jcr.Node
Throws:
openwfe.org.jcr.JcrException

setProperty

public openwfe.org.jcr.Property setProperty(String string,
                                            Object object)
                                     throws openwfe.org.jcr.JcrException
Throws:
openwfe.org.jcr.JcrException

getPath

public String getPath()
               throws openwfe.org.jcr.JcrException
Specified by:
getPath in interface openwfe.org.jcr.Item
Throws:
openwfe.org.jcr.JcrException

getWrappedInstance

public Object getWrappedInstance()
                          throws openwfe.org.jcr.JcrException
Specified by:
getWrappedInstance in interface openwfe.org.jcr.Item
Throws:
openwfe.org.jcr.JcrException

hasProperty

public boolean hasProperty(String propertyName)
                    throws openwfe.org.jcr.JcrException
Specified by:
hasProperty in interface openwfe.org.jcr.Node
Throws:
openwfe.org.jcr.JcrException

getProperty

public openwfe.org.jcr.Property getProperty(String propertyName)
                                     throws openwfe.org.jcr.JcrException
Specified by:
getProperty in interface openwfe.org.jcr.Node
Throws:
openwfe.org.jcr.JcrException

setProperty

public openwfe.org.jcr.Property setProperty(String propertyName,
                                            String value)
                                     throws openwfe.org.jcr.JcrException
Specified by:
setProperty in interface openwfe.org.jcr.Node
Throws:
openwfe.org.jcr.JcrException

setProperty

public openwfe.org.jcr.Property setProperty(String propertyName,
                                            long value)
                                     throws openwfe.org.jcr.JcrException
Throws:
openwfe.org.jcr.JcrException

hasNode

public boolean hasNode(String relPath)
                throws openwfe.org.jcr.JcrException
Specified by:
hasNode in interface openwfe.org.jcr.Node
Throws:
openwfe.org.jcr.JcrException

getNode

public openwfe.org.jcr.Node getNode(String relPath)
                             throws openwfe.org.jcr.JcrException
Specified by:
getNode in interface openwfe.org.jcr.Node
Throws:
openwfe.org.jcr.JcrException

addNode

public openwfe.org.jcr.Node addNode(String newNodeName)
                             throws openwfe.org.jcr.JcrException
Specified by:
addNode in interface openwfe.org.jcr.Node
Throws:
openwfe.org.jcr.JcrException

getName

public String getName()
               throws openwfe.org.jcr.JcrException
Specified by:
getName in interface openwfe.org.jcr.Item
Throws:
openwfe.org.jcr.JcrException

getParent

public openwfe.org.jcr.Item getParent()
                               throws openwfe.org.jcr.JcrException
Specified by:
getParent in interface openwfe.org.jcr.Item
Throws:
openwfe.org.jcr.JcrException

isNode

public boolean isNode()
               throws openwfe.org.jcr.JcrException
Specified by:
isNode in interface openwfe.org.jcr.Item
Throws:
openwfe.org.jcr.JcrException

save

public void save()
          throws openwfe.org.jcr.JcrException
Throws:
openwfe.org.jcr.JcrException

setProperty

public openwfe.org.jcr.Property setProperty(String propertyName,
                                            String valueStr,
                                            int type)
                                     throws openwfe.org.jcr.JcrException
Specified by:
setProperty in interface openwfe.org.jcr.Node
Throws:
openwfe.org.jcr.JcrException
See Also:
Node.setProperty(java.lang.String, java.lang.String, int)

remove

public void remove()
            throws openwfe.org.jcr.JcrException
Specified by:
remove in interface openwfe.org.jcr.Node
Throws:
openwfe.org.jcr.JcrException

setProperty

public openwfe.org.jcr.Property setProperty(String propertyName,
                                            InputStream value)
                                     throws openwfe.org.jcr.JcrException
Specified by:
setProperty in interface openwfe.org.jcr.Node
Throws:
openwfe.org.jcr.JcrException
See Also:
Node.setProperty(java.lang.String, java.io.InputStream)


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