Class DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<T>
- java.lang.Object
-
- org.apache.jackrabbit.commons.cnd.DefinitionBuilderFactory.AbstractItemDefinitionBuilder<T>
-
- org.apache.jackrabbit.commons.cnd.DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<T>
-
- Type Parameters:
T
-
- Direct Known Subclasses:
TemplateBuilderFactory.NodeDefinitionTemplateBuilder
- Enclosing class:
- DefinitionBuilderFactory<T,N>
public abstract static class DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<T> extends DefinitionBuilderFactory.AbstractItemDefinitionBuilder<T>
Builder for child node definitions of typeT
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
allowSns
-
Fields inherited from class org.apache.jackrabbit.commons.cnd.DefinitionBuilderFactory.AbstractItemDefinitionBuilder
autocreate, isMandatory, isProtected, name, onParent
-
-
Constructor Summary
Constructors Constructor Description AbstractNodeDefinitionBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
addRequiredPrimaryType(String name)
void
setAllowsSameNameSiblings(boolean allowSns)
abstract void
setDefaultPrimaryType(String name)
-
Methods inherited from class org.apache.jackrabbit.commons.cnd.DefinitionBuilderFactory.AbstractItemDefinitionBuilder
build, getName, setAutoCreated, setDeclaringNodeType, setMandatory, setName, setOnParentVersion, setProtected
-
-
-
-
Method Detail
-
setDefaultPrimaryType
public abstract void setDefaultPrimaryType(String name) throws RepositoryException
- Parameters:
name
- the name of the default primary type of the node definition being built.- Throws:
RepositoryException
-
addRequiredPrimaryType
public abstract void addRequiredPrimaryType(String name) throws RepositoryException
- Parameters:
name
- add a required primary type to the list of names of the required primary types of the node definition being built.- Throws:
RepositoryException
-
setAllowsSameNameSiblings
public void setAllowsSameNameSiblings(boolean allowSns) throws RepositoryException
- Parameters:
allowSns
- true if building a node definition with same name siblings, false otherwise.- Throws:
RepositoryException
-
-