info.magnolia.jcr.util
Class NodeTypes.Renderable

java.lang.Object
  extended by info.magnolia.jcr.util.NodeTypes.Renderable
Enclosing class:
NodeTypes

public static class NodeTypes.Renderable
extends Object

Represents the mixin mgnl:renderable.


Field Summary
static String NAME
           
static String TEMPLATE
           
 
Constructor Summary
NodeTypes.Renderable()
           
 
Method Summary
static String getTemplate(javax.jcr.Node node)
          Returns the template assigned to the node or null of none has been assigned.
static void set(javax.jcr.Node node, String template)
          Sets the template assigned to the node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values

TEMPLATE

public static final String TEMPLATE
See Also:
Constant Field Values
Constructor Detail

NodeTypes.Renderable

public NodeTypes.Renderable()
Method Detail

getTemplate

public static String getTemplate(javax.jcr.Node node)
                          throws javax.jcr.RepositoryException
Returns the template assigned to the node or null of none has been assigned. Used with nodes having the mgnl:renderable mixin.

Throws:
javax.jcr.RepositoryException

set

public static void set(javax.jcr.Node node,
                       String template)
                throws javax.jcr.RepositoryException
Sets the template assigned to the node. Used with nodes having the mgnl:renderable mixin.

Throws:
javax.jcr.RepositoryException


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