public class TemplateBuilderFactory.NodeDefinitionTemplateBuilder extends DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<NodeTypeTemplate>
allowSns
autocreate, isMandatory, isProtected, name, onParent
Constructor and Description |
---|
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 NodeDefinitionTemplateBuilder(TemplateBuilderFactory.NodeTypeTemplateBuilder ntd) throws UnsupportedRepositoryOperationException, RepositoryException
public void setName(String name) throws RepositoryException
setName
in class DefinitionBuilderFactory.AbstractItemDefinitionBuilder<NodeTypeTemplate>
name
- the name of the child item definition being buildRepositoryException
ItemDefinition.getName()
public void addRequiredPrimaryType(String name)
addRequiredPrimaryType
in class DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<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 ConstraintViolationException
setDefaultPrimaryType
in class DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<NodeTypeTemplate>
name
- the name of the default primary type of the node definition being built.ConstraintViolationException
public void setDeclaringNodeType(String name)
setDeclaringNodeType
in class DefinitionBuilderFactory.AbstractItemDefinitionBuilder<NodeTypeTemplate>
name
- the name of the declaring node type.ItemDefinition.getDeclaringNodeType()
public void build() throws ConstraintViolationException
DefinitionBuilderFactory.AbstractItemDefinitionBuilder
build
in class DefinitionBuilderFactory.AbstractItemDefinitionBuilder<NodeTypeTemplate>
ConstraintViolationException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.