Class DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<T>
- java.lang.Object
-
- org.apache.jackrabbit.commons.cnd.DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<T>
-
- Type Parameters:
T-
- Direct Known Subclasses:
TemplateBuilderFactory.NodeTypeTemplateBuilder
- Enclosing class:
- DefinitionBuilderFactory<T,N>
public abstract static class DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<T> extends Object
Builder for a node type definition of type T.
-
-
Constructor Summary
Constructors Constructor Description AbstractNodeTypeDefinitionBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidaddSupertype(String name)Add the given name to the set of supertypes of the node type definition being builtabstract Tbuild()Build this node type definitionStringgetName()Returns the name of the node type definition being builtabstract DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<T>newNodeDefinitionBuilder()Create a new instance fo aDefinitionBuilderFactory.AbstractNodeDefinitionBuilderwhich can be used to add child node definitions to the node type definition being built.abstract DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<T>newPropertyDefinitionBuilder()Create a new instance of aDefinitionBuilderFactory.AbstractPropertyDefinitionBuilderwhich can be used to add property definitions to the node type definition being built.voidsetAbstract(boolean isAbstract)voidsetMixin(boolean isMixin)voidsetName(String name)Set the name of the node type definition being builtvoidsetOrderableChildNodes(boolean isOrderable)abstract voidsetPrimaryItemName(String name)voidsetQueryable(boolean queryable)
-
-
-
Method Detail
-
setName
public void setName(String name) throws RepositoryException
Set the name of the node type definition being built- Parameters:
name-- Throws:
RepositoryException- if the name is not valid- See Also:
NodeTypeDefinition.getName()
-
getName
public String getName()
Returns the name of the node type definition being built- Returns:
-
addSupertype
public abstract void addSupertype(String name) throws RepositoryException
Add the given name to the set of supertypes of the node type definition being built- Parameters:
name- name of the the supertype- Throws:
RepositoryException- if the name is not valid- See Also:
NodeTypeDefinition.getDeclaredSupertypeNames()
-
setMixin
public void setMixin(boolean isMixin) throws RepositoryException- Parameters:
isMixin-trueif building a mixin node type definition;falseotherwise.- Throws:
RepositoryException- See Also:
NodeTypeDefinition.isMixin()
-
setOrderableChildNodes
public void setOrderableChildNodes(boolean isOrderable) throws RepositoryException- Parameters:
isOrderable-trueif building a node type having orderable child nodes;falseotherwise.- Throws:
RepositoryException- See Also:
NodeTypeDefinition.hasOrderableChildNodes()
-
setPrimaryItemName
public abstract void setPrimaryItemName(String name) throws RepositoryException
- Parameters:
name- the name of the primary item.- Throws:
RepositoryException- See Also:
NodeTypeDefinition.getPrimaryItemName()
-
setAbstract
public void setAbstract(boolean isAbstract) throws RepositoryException- Parameters:
isAbstract-trueif building a node type that is abstract.- Throws:
RepositoryException- See Also:
NodeTypeDefinition.isAbstract()
-
setQueryable
public void setQueryable(boolean queryable) throws RepositoryException- Parameters:
queryable-trueif building a node type that is queryable- Throws:
RepositoryException- See Also:
NodeTypeDefinition.isQueryable()
-
newPropertyDefinitionBuilder
public abstract DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<T> newPropertyDefinitionBuilder() throws RepositoryException
Create a new instance of aDefinitionBuilderFactory.AbstractPropertyDefinitionBuilderwhich can be used to add property definitions to the node type definition being built.- Returns:
- Throws:
RepositoryException
-
newNodeDefinitionBuilder
public abstract DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<T> newNodeDefinitionBuilder() throws RepositoryException
Create a new instance fo aDefinitionBuilderFactory.AbstractNodeDefinitionBuilderwhich can be used to add child node definitions to the node type definition being built.- Returns:
- Throws:
RepositoryException
-
build
public abstract T build() throws RepositoryException
Build this node type definition- Returns:
- Throws:
RepositoryException
-
-