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 -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddSupertype(String name) Add the given name to the set of supertypes of the node type definition being builtabstract Tbuild()Build this node type definitiongetName()Returns the name of the node type definition being builtCreate a new instance fo aDefinitionBuilderFactory.AbstractNodeDefinitionBuilderwhich can be used to add child node definitions to the node type definition being built.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) voidSet the name of the node type definition being builtvoidsetOrderableChildNodes(boolean isOrderable) abstract voidsetPrimaryItemName(String name) voidsetQueryable(boolean queryable)
-
Constructor Details
-
AbstractNodeTypeDefinitionBuilder
public AbstractNodeTypeDefinitionBuilder()
-
-
Method Details
-
setName
Set the name of the node type definition being built- Parameters:
name-- Throws:
RepositoryException- if the name is not valid- See Also:
-
getName
Returns the name of the node type definition being built- Returns:
-
addSupertype
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:
-
setMixin
- Parameters:
isMixin-trueif building a mixin node type definition;falseotherwise.- Throws:
RepositoryException- See Also:
-
setOrderableChildNodes
- Parameters:
isOrderable-trueif building a node type having orderable child nodes;falseotherwise.- Throws:
RepositoryException- See Also:
-
setPrimaryItemName
- Parameters:
name- the name of the primary item.- Throws:
RepositoryException- See Also:
-
setAbstract
- Parameters:
isAbstract-trueif building a node type that is abstract.- Throws:
RepositoryException- See Also:
-
setQueryable
- Parameters:
queryable-trueif building a node type that is queryable- Throws:
RepositoryException- See Also:
-
newPropertyDefinitionBuilder
public abstract DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<T> newPropertyDefinitionBuilder() throws RepositoryExceptionCreate 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 RepositoryExceptionCreate 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
Build this node type definition- Returns:
- Throws:
RepositoryException
-