public class TemplateBuilderFactory.NodeDefinitionTemplateBuilder extends DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<javax.jcr.nodetype.NodeTypeTemplate>
allowSns
autocreate, isMandatory, isProtected, name, onParent
Constructor and Description |
---|
TemplateBuilderFactory.NodeDefinitionTemplateBuilder(TemplateBuilderFactory.NodeTypeTemplateBuilder ntd) |
Modifier and Type | Method and Description |
---|---|
void |
addRequiredPrimaryType(String name) |
void |
build()
Build this item definition an add it to its parent node type definition
|
void |
setDeclaringNodeType(String name) |
void |
setDefaultPrimaryType(String name) |
void |
setName(String name) |
setAllowsSameNameSiblings
getName, setAutoCreated, setMandatory, setOnParentVersion, setProtected
public TemplateBuilderFactory.NodeDefinitionTemplateBuilder(TemplateBuilderFactory.NodeTypeTemplateBuilder ntd) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
public void setName(String name) throws javax.jcr.RepositoryException
setName
in class DefinitionBuilderFactory.AbstractItemDefinitionBuilder<javax.jcr.nodetype.NodeTypeTemplate>
name
- the name of the child item definition being buildjavax.jcr.RepositoryException
ItemDefinition.getName()
public void addRequiredPrimaryType(String name)
addRequiredPrimaryType
in class DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<javax.jcr.nodetype.NodeTypeTemplate>
name
- add a required primary type to the list of names of the required primary types of
the node definition being built.public void setDefaultPrimaryType(String name) throws javax.jcr.nodetype.ConstraintViolationException
setDefaultPrimaryType
in class DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<javax.jcr.nodetype.NodeTypeTemplate>
name
- the name of the default primary type of the node definition being built.javax.jcr.nodetype.ConstraintViolationException
public void setDeclaringNodeType(String name)
setDeclaringNodeType
in class DefinitionBuilderFactory.AbstractItemDefinitionBuilder<javax.jcr.nodetype.NodeTypeTemplate>
name
- the name of the declaring node type.ItemDefinition.getDeclaringNodeType()
public void build() throws javax.jcr.nodetype.ConstraintViolationException
DefinitionBuilderFactory.AbstractItemDefinitionBuilder
build
in class DefinitionBuilderFactory.AbstractItemDefinitionBuilder<javax.jcr.nodetype.NodeTypeTemplate>
javax.jcr.nodetype.ConstraintViolationException
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.