public class TemplateBuilderFactory.NodeTypeTemplateBuilder extends DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<NodeTypeTemplate>
Constructor and Description |
---|
NodeTypeTemplateBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
addSupertype(java.lang.String name)
Add the given name to the set of supertypes of the node type definition
being built
|
NodeTypeTemplate |
build()
Build this node type definition
|
DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<NodeTypeTemplate> |
newNodeDefinitionBuilder()
Create a new instance fo a
DefinitionBuilderFactory.AbstractNodeDefinitionBuilder
which can be used to add child node definitions to the node type definition being built. |
DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<NodeTypeTemplate> |
newPropertyDefinitionBuilder()
Create a new instance of a
DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder
which can be used to add property definitions to the node type definition being built. |
void |
setName(java.lang.String name)
Set the name of the node type definition being built
|
void |
setPrimaryItemName(java.lang.String name) |
getName, setAbstract, setMixin, setOrderableChildNodes, setQueryable
public NodeTypeTemplateBuilder() throws UnsupportedRepositoryOperationException, RepositoryException
public DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<NodeTypeTemplate> newNodeDefinitionBuilder() throws UnsupportedRepositoryOperationException, RepositoryException
DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder
DefinitionBuilderFactory.AbstractNodeDefinitionBuilder
which can be used to add child node definitions to the node type definition being built.newNodeDefinitionBuilder
in class DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<NodeTypeTemplate>
RepositoryException
UnsupportedRepositoryOperationException
public DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<NodeTypeTemplate> newPropertyDefinitionBuilder() throws UnsupportedRepositoryOperationException, RepositoryException
DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder
DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder
which can be used to add property definitions to the node type definition being built.newPropertyDefinitionBuilder
in class DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<NodeTypeTemplate>
RepositoryException
UnsupportedRepositoryOperationException
public NodeTypeTemplate build() throws ConstraintViolationException
DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder
build
in class DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<NodeTypeTemplate>
ConstraintViolationException
public void setName(java.lang.String name) throws RepositoryException
DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder
setName
in class DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<NodeTypeTemplate>
RepositoryException
- if the name is not validNodeTypeDefinition.getName()
public void addSupertype(java.lang.String name)
DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder
addSupertype
in class DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<NodeTypeTemplate>
name
- name of the the supertypeNodeTypeDefinition.getDeclaredSupertypeNames()
public void setPrimaryItemName(java.lang.String name) throws ConstraintViolationException
setPrimaryItemName
in class DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<NodeTypeTemplate>
name
- the name of the primary item.ConstraintViolationException
NodeTypeDefinition.getPrimaryItemName()
Copyright © 2010 - 2020 Adobe. All Rights Reserved