| |
|
| javax.jcr.nodetype.NodeTypeTemplate
NodeTypeTemplate | public interface NodeTypeTemplate extends NodeTypeDefinition(Code) | | The NodeTypeTemplate interface represents a simple container
structure used to define node types which are then registered through the
NodeTypeManager.registerNodeType method.
NodeTypeTemplate , like NodeType , is a subclass of
NodeTypeDefinition so it shares with NodeType those
methods that are relevant to a static definition. In addition,
NodeTypeTemplate provides methods for setting the attributes of
the definition. Implementations of this interface need not contain any
validation logic.
See the corresponding get methods for each attribute in
NodeTypeDefinition for the default values assumed when a new
empty NodeTypeTemplate is created (as opposed to one extracted
from an existing NodeType ).
since: JCR 2.0 |
getNodeDefinitionTemplates | public List getNodeDefinitionTemplates()(Code) | | Returns a mutable List of NodeDefinitionTemplate
objects. To define a new NodeTypeTemplate or change an
existing one, NodeDefinitionTemplate objects can be added
to or removed from this List .
a mutable List of NodeDefinitionTemplate objects. |
getPropertyDefinitionTemplates | public List getPropertyDefinitionTemplates()(Code) | | Returns a mutable List of PropertyDefinitionTemplate
objects. To define a new NodeTypeTemplate or change an
existing one, PropertyDefinitionTemplate objects can be
added to or removed from this List .
a mutable List of PropertyDefinitionTemplate objects. |
setAbstract | public void setAbstract(boolean abstractStatus)(Code) | | Sets the abstract flag of the node type.
Parameters: abstractStatus - a boolean . |
setDeclaredSuperTypeNames | public void setDeclaredSuperTypeNames(String[] names)(Code) | | Sets the names of the supertypes of the node type.
Parameters: names - a String array. |
setMixin | public void setMixin(boolean mixin)(Code) | | Sets the mixin flag of the node type.
Parameters: mixin - a boolean . |
setName | public void setName(String name)(Code) | | Sets the name of the node type.
Parameters: name - a String . |
setOrderableChildNodes | public void setOrderableChildNodes(boolean orderable)(Code) | | Sets the orderable child nodes flag of the node type.
Parameters: orderable - a boolean . |
setPrimaryItemName | public void setPrimaryItemName(String name)(Code) | | Sets the name of the primary item.
Parameters: name - a String . |
|
|
|