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 java.lang.ObjectBuilder 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(java.lang.String name)Add the given name to the set of supertypes of the node type definition being builtabstract Tbuild()Build this node type definitionjava.lang.StringgetName()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(java.lang.String name)Set the name of the node type definition being builtvoidsetOrderableChildNodes(boolean isOrderable)abstract voidsetPrimaryItemName(java.lang.String name)voidsetQueryable(boolean queryable)
-
-
-
Method Detail
-
setName
public void setName(java.lang.String name) throws javax.jcr.RepositoryExceptionSet the name of the node type definition being built- Parameters:
name-- Throws:
javax.jcr.RepositoryException- if the name is not valid- See Also:
NodeTypeDefinition.getName()
-
getName
public java.lang.String getName()
Returns the name of the node type definition being built- Returns:
-
addSupertype
public abstract void addSupertype(java.lang.String name) throws javax.jcr.RepositoryExceptionAdd the given name to the set of supertypes of the node type definition being built- Parameters:
name- name of the the supertype- Throws:
javax.jcr.RepositoryException- if the name is not valid- See Also:
NodeTypeDefinition.getDeclaredSupertypeNames()
-
setMixin
public void setMixin(boolean isMixin) throws javax.jcr.RepositoryException- Parameters:
isMixin-trueif building a mixin node type definition;falseotherwise.- Throws:
javax.jcr.RepositoryException- See Also:
NodeTypeDefinition.isMixin()
-
setOrderableChildNodes
public void setOrderableChildNodes(boolean isOrderable) throws javax.jcr.RepositoryException- Parameters:
isOrderable-trueif building a node type having orderable child nodes;falseotherwise.- Throws:
javax.jcr.RepositoryException- See Also:
NodeTypeDefinition.hasOrderableChildNodes()
-
setPrimaryItemName
public abstract void setPrimaryItemName(java.lang.String name) throws javax.jcr.RepositoryException- Parameters:
name- the name of the primary item.- Throws:
javax.jcr.RepositoryException- See Also:
NodeTypeDefinition.getPrimaryItemName()
-
setAbstract
public void setAbstract(boolean isAbstract) throws javax.jcr.RepositoryException- Parameters:
isAbstract-trueif building a node type that is abstract.- Throws:
javax.jcr.RepositoryException- See Also:
NodeTypeDefinition.isAbstract()
-
setQueryable
public void setQueryable(boolean queryable) throws javax.jcr.RepositoryException- Parameters:
queryable-trueif building a node type that is queryable- Throws:
javax.jcr.RepositoryException- See Also:
NodeTypeDefinition.isQueryable()
-
newPropertyDefinitionBuilder
public abstract DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<T> newPropertyDefinitionBuilder() throws javax.jcr.RepositoryException
Create a new instance of aDefinitionBuilderFactory.AbstractPropertyDefinitionBuilderwhich can be used to add property definitions to the node type definition being built.- Returns:
- Throws:
javax.jcr.RepositoryException
-
newNodeDefinitionBuilder
public abstract DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<T> newNodeDefinitionBuilder() throws javax.jcr.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:
javax.jcr.RepositoryException
-
build
public abstract T build() throws javax.jcr.RepositoryException
Build this node type definition- Returns:
- Throws:
javax.jcr.RepositoryException
-
-