|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeDefinitionTemplate
The NodeDefinitionTemplate
interface extends
NodeDefinition
with the addition of write methods, enabling the
characteristics of a child node definition to be set, after which the
NodeDefinitionTemplate
is added to a NodeTypeTemplate
.
get
methods for each attribute in
NodeDefinition
for the default values assumed when a new empty
NodeDefinitionTemplate
is created (as opposed to one extracted
from an existing NodeType
).
- Since:
- JCR 2.0
Method Summary
void
setAutoCreated(boolean autoCreated)
Sets the auto-create status of the node.
void
setDefaultPrimaryType(String defaultPrimaryType)
Sets the default primary type of this node.
void
setMandatory(boolean mandatory)
Sets the mandatory status of the node.
void
setName(String name)
Sets the name of the node.
void
setOnParentVersion(int opv)
Sets the on-parent-version status of the node.
void
setProtected(boolean protectedStatus)
Sets the protected status of the node.
void
setRequiredPrimaryTypes(String[] requiredPrimaryTypes)
Sets the required primary types of this node.
void
setSameNameSiblings(boolean allowSameNameSiblings)
Sets the same-name sibling status of this node.
Methods inherited from interface javax.jcr.nodetype.NodeDefinition
allowsSameNameSiblings, getDefaultPrimaryType, getRequiredPrimaryTypes
Methods inherited from interface javax.jcr.nodetype.ItemDefinition
getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected
Method Detail
setName
void setName(String name)
- Sets the name of the node.
- Parameters:
name
- a String
.
setAutoCreated
void setAutoCreated(boolean autoCreated)
- Sets the auto-create status of the node.
- Parameters:
autoCreated
- a boolean
.
setMandatory
void setMandatory(boolean mandatory)
- Sets the mandatory status of the node.
- Parameters:
mandatory
- a boolean
.
setOnParentVersion
void setOnParentVersion(int opv)
- Sets the on-parent-version status of the node.
- Parameters:
opv
- an int
constant member of OnParentVersionAction
.
setProtected
void setProtected(boolean protectedStatus)
- Sets the protected status of the node.
- Parameters:
protectedStatus
- a boolean
.
setRequiredPrimaryTypes
void setRequiredPrimaryTypes(String[] requiredPrimaryTypes)
- Sets the required primary types of this node.
- Parameters:
requiredPrimaryTypes
- a String
array.
setDefaultPrimaryType
void setDefaultPrimaryType(String defaultPrimaryType)
- Sets the default primary type of this node.
- Parameters:
defaultPrimaryType
- a String
.
setSameNameSiblings
void setSameNameSiblings(boolean allowSameNameSiblings)
- Sets the same-name sibling status of this node.
- Parameters:
allowSameNameSiblings
- a boolean
.
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.