Class TemplateBuilderFactory.NodeDefinitionTemplateBuilder
- java.lang.Object
-
- org.apache.jackrabbit.commons.cnd.DefinitionBuilderFactory.AbstractItemDefinitionBuilder<T>
-
- org.apache.jackrabbit.commons.cnd.DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<NodeTypeTemplate>
-
- org.apache.jackrabbit.commons.cnd.TemplateBuilderFactory.NodeDefinitionTemplateBuilder
-
- Enclosing class:
- TemplateBuilderFactory
public class TemplateBuilderFactory.NodeDefinitionTemplateBuilder extends DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<NodeTypeTemplate>
-
-
Constructor Summary
Constructors Constructor Description NodeDefinitionTemplateBuilder(TemplateBuilderFactory.NodeTypeTemplateBuilder ntd)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRequiredPrimaryType(java.lang.String name)
void
build()
Build this item definition an add it to its parent node type definitionvoid
setDeclaringNodeType(java.lang.String name)
void
setDefaultPrimaryType(java.lang.String name)
void
setName(java.lang.String name)
-
Methods inherited from class org.apache.jackrabbit.commons.cnd.DefinitionBuilderFactory.AbstractNodeDefinitionBuilder
setAllowsSameNameSiblings
-
Methods inherited from class org.apache.jackrabbit.commons.cnd.DefinitionBuilderFactory.AbstractItemDefinitionBuilder
getName, setAutoCreated, setMandatory, setOnParentVersion, setProtected
-
-
-
-
Constructor Detail
-
NodeDefinitionTemplateBuilder
public NodeDefinitionTemplateBuilder(TemplateBuilderFactory.NodeTypeTemplateBuilder ntd) throws UnsupportedRepositoryOperationException, RepositoryException
-
-
Method Detail
-
setName
public void setName(java.lang.String name) throws RepositoryException
- Overrides:
setName
in classDefinitionBuilderFactory.AbstractItemDefinitionBuilder<NodeTypeTemplate>
- Parameters:
name
- the name of the child item definition being build- Throws:
RepositoryException
- See Also:
ItemDefinition.getName()
-
addRequiredPrimaryType
public void addRequiredPrimaryType(java.lang.String name)
- Specified by:
addRequiredPrimaryType
in classDefinitionBuilderFactory.AbstractNodeDefinitionBuilder<NodeTypeTemplate>
- Parameters:
name
- add a required primary type to the list of names of the required primary types of the node definition being built.
-
setDefaultPrimaryType
public void setDefaultPrimaryType(java.lang.String name) throws ConstraintViolationException
- Specified by:
setDefaultPrimaryType
in classDefinitionBuilderFactory.AbstractNodeDefinitionBuilder<NodeTypeTemplate>
- Parameters:
name
- the name of the default primary type of the node definition being built.- Throws:
ConstraintViolationException
-
setDeclaringNodeType
public void setDeclaringNodeType(java.lang.String name)
- Specified by:
setDeclaringNodeType
in classDefinitionBuilderFactory.AbstractItemDefinitionBuilder<NodeTypeTemplate>
- Parameters:
name
- the name of the declaring node type.- See Also:
ItemDefinition.getDeclaringNodeType()
-
build
public void build() throws ConstraintViolationException
Description copied from class:DefinitionBuilderFactory.AbstractItemDefinitionBuilder
Build this item definition an add it to its parent node type definition- Specified by:
build
in classDefinitionBuilderFactory.AbstractItemDefinitionBuilder<NodeTypeTemplate>
- Throws:
ConstraintViolationException
-
-