Copyright© 2008-2022 Sitevision AB, all rights reserved.
public interface NodeDefinitionTemplate extends NodeDefinition
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
.
See the corresponding 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
).
Sitevision note: Unsupported operation
Modifier and Type | Method and Description |
---|---|
void |
setAutoCreated(boolean autoCreated)
Sets the auto-create status of the node.
|
void |
setDefaultPrimaryTypeName(String name)
Sets the name of 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 |
setRequiredPrimaryTypeNames(String[] names)
Sets the names of the required primary types of this node.
|
void |
setSameNameSiblings(boolean allowSameNameSiblings)
Sets the same-name sibling status of this node.
|
allowsSameNameSiblings, getDefaultPrimaryType, getDefaultPrimaryTypeName, getRequiredPrimaryTypeNames, getRequiredPrimaryTypes
getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected
void setName(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 setAutoCreated(boolean autoCreated)
autoCreated
- a boolean
.void setMandatory(boolean mandatory)
mandatory
- a boolean
.void setOnParentVersion(int opv)
opv
- an int
constant member of
OnParentVersionAction
.void setProtected(boolean protectedStatus)
protectedStatus
- a boolean
.void setRequiredPrimaryTypeNames(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 setDefaultPrimaryTypeName(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 setSameNameSiblings(boolean allowSameNameSiblings)
allowSameNameSiblings
- a boolean
.Sitevision - Portal and Content Management Made Easy
Sitevision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2022 Sitevision AB, all rights reserved.