public class TemplateBuilderFactory.NodeDefinitionTemplateBuilder extends DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<NodeTypeTemplate>
Constructor and Description |
---|
NodeDefinitionTemplateBuilder(TemplateBuilderFactory.NodeTypeTemplateBuilder ntd) |
Modifier and Type | Method and Description |
---|---|
void |
addRequiredPrimaryType(java.lang.String name) |
void |
build()
Build this item definition an add it to its parent node type definition
|
void |
setDeclaringNodeType(java.lang.String name) |
void |
setDefaultPrimaryType(java.lang.String name) |
void |
setName(java.lang.String name) |
setAllowsSameNameSiblings
getName, setAutoCreated, setMandatory, setOnParentVersion, setProtected
public NodeDefinitionTemplateBuilder(TemplateBuilderFactory.NodeTypeTemplateBuilder ntd) throws UnsupportedRepositoryOperationException, RepositoryException
UnsupportedRepositoryOperationException
RepositoryException
public void setName(java.lang.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(java.lang.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(java.lang.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(java.lang.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 © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"