|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface NodeTypeTemplate
The NodeTypeTemplate interface is 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.
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).
| Method Summary | |
|---|---|
java.util.List |
getNodeDefinitionTemplates()
Returns a mutable List of NodeDefinitionTemplate
objects. |
java.util.List |
getPropertyDefinitionTemplates()
Returns a mutable List of PropertyDefinitionTemplate
objects. |
void |
setAbstract(boolean abstractStatus)
Sets the abstract flag of the node type. |
void |
setDeclaredSuperTypeNames(java.lang.String[] names)
Sets the names of the supertypes of the node type. |
void |
setMixin(boolean mixin)
Sets the mixin flag of the node type. |
void |
setName(java.lang.String name)
Sets the name of the node type. |
void |
setOrderableChildNodes(boolean orderable)
Sets the orderable child nodes flag of the node type. |
void |
setPrimaryItemName(java.lang.String name)
Sets the name of the primary item. |
void |
setQueryable(boolean queryable)
Sets the queryable status of the node type. |
| Methods inherited from interface javax.jcr.nodetype.NodeTypeDefinition |
|---|
getDeclaredChildNodeDefinitions, getDeclaredPropertyDefinitions, getDeclaredSupertypeNames, getName, getPrimaryItemName, hasOrderableChildNodes, isAbstract, isMixin, isQueryable |
| Method Detail |
|---|
void setName(java.lang.String name)
throws ConstraintViolationException
name - a JCR name.
ConstraintViolationException - if name is not a
syntactically valid JCR name in either qualified or expanded form.
void setDeclaredSuperTypeNames(java.lang.String[] names)
throws ConstraintViolationException
names - an array of JCR names.
ConstraintViolationException - if names includes a
name that is not a syntactically valid JCR name in either qualified or expanded form.void setAbstract(boolean abstractStatus)
abstractStatus - a boolean.void setMixin(boolean mixin)
mixin - a boolean.void setOrderableChildNodes(boolean orderable)
orderable - a boolean.
void setPrimaryItemName(java.lang.String name)
throws ConstraintViolationException
name - a JCR name.
ConstraintViolationException - if name is not a
syntactically valid JCR name in either qualified or expanded form.void setQueryable(boolean queryable)
queryable - a boolean.java.util.List getPropertyDefinitionTemplates()
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.
List of PropertyDefinitionTemplate
objects.java.util.List getNodeDefinitionTemplates()
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.
List of NodeDefinitionTemplate
objects.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||