public class TemplateBuilderFactory.NodeTypeTemplateBuilder extends DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<javax.jcr.nodetype.NodeTypeTemplate>
isAbstract, isMixin, isOrderable, name, queryable
Constructor and Description |
---|
TemplateBuilderFactory.NodeTypeTemplateBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
addSupertype(String name)
Add the given name to the set of supertypes of the node type definition
being built
|
javax.jcr.nodetype.NodeTypeTemplate |
build()
Build this node type definition
|
DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<javax.jcr.nodetype.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<javax.jcr.nodetype.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(String name)
Set the name of the node type definition being built
|
void |
setPrimaryItemName(String name) |
getName, setAbstract, setMixin, setOrderableChildNodes, setQueryable
public TemplateBuilderFactory.NodeTypeTemplateBuilder() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
public DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<javax.jcr.nodetype.NodeTypeTemplate> newNodeDefinitionBuilder() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.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<javax.jcr.nodetype.NodeTypeTemplate>
javax.jcr.RepositoryException
javax.jcr.UnsupportedRepositoryOperationException
public DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<javax.jcr.nodetype.NodeTypeTemplate> newPropertyDefinitionBuilder() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.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<javax.jcr.nodetype.NodeTypeTemplate>
javax.jcr.RepositoryException
javax.jcr.UnsupportedRepositoryOperationException
public javax.jcr.nodetype.NodeTypeTemplate build() throws javax.jcr.nodetype.ConstraintViolationException
DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder
build
in class DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<javax.jcr.nodetype.NodeTypeTemplate>
javax.jcr.nodetype.ConstraintViolationException
public void setName(String name) throws javax.jcr.RepositoryException
DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder
setName
in class DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<javax.jcr.nodetype.NodeTypeTemplate>
javax.jcr.RepositoryException
- if the name is not validNodeTypeDefinition.getName()
public void addSupertype(String name)
DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder
addSupertype
in class DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<javax.jcr.nodetype.NodeTypeTemplate>
name
- name of the the supertypeNodeTypeDefinition.getDeclaredSupertypeNames()
public void setPrimaryItemName(String name) throws javax.jcr.nodetype.ConstraintViolationException
setPrimaryItemName
in class DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<javax.jcr.nodetype.NodeTypeTemplate>
name
- the name of the primary item.javax.jcr.nodetype.ConstraintViolationException
NodeTypeDefinition.getPrimaryItemName()
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.