Class DefinitionBuilderFactory.AbstractItemDefinitionBuilder<T>
- java.lang.Object
-
- org.apache.jackrabbit.commons.cnd.DefinitionBuilderFactory.AbstractItemDefinitionBuilder<T>
-
- Type Parameters:
T
-
- Direct Known Subclasses:
DefinitionBuilderFactory.AbstractNodeDefinitionBuilder
,DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder
- Enclosing class:
- DefinitionBuilderFactory<T,N>
public abstract static class DefinitionBuilderFactory.AbstractItemDefinitionBuilder<T> extends java.lang.Object
Builder for item definitions of typeT
-
-
Constructor Summary
Constructors Constructor Description AbstractItemDefinitionBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
build()
Build this item definition an add it to its parent node type definitionjava.lang.String
getName()
Name of the child item definition being builtvoid
setAutoCreated(boolean autocreate)
abstract void
setDeclaringNodeType(java.lang.String name)
void
setMandatory(boolean isMandatory)
void
setName(java.lang.String name)
void
setOnParentVersion(int onParent)
void
setProtected(boolean isProtected)
-
-
-
Method Detail
-
setName
public void setName(java.lang.String name) throws RepositoryException
- Parameters:
name
- the name of the child item definition being build- Throws:
RepositoryException
- See Also:
ItemDefinition.getName()
-
getName
public java.lang.String getName()
Name of the child item definition being built- Returns:
-
setDeclaringNodeType
public abstract void setDeclaringNodeType(java.lang.String name) throws RepositoryException
- Parameters:
name
- the name of the declaring node type.- Throws:
RepositoryException
- See Also:
ItemDefinition.getDeclaringNodeType()
-
setAutoCreated
public void setAutoCreated(boolean autocreate) throws RepositoryException
- Parameters:
autocreate
-true
if building a 'autocreate' child item definition, false otherwise.- Throws:
RepositoryException
- See Also:
ItemDefinition.isAutoCreated()
-
setOnParentVersion
public void setOnParentVersion(int onParent) throws RepositoryException
- Parameters:
onParent
- the 'onParentVersion' attribute of the child item definition being built- Throws:
RepositoryException
- See Also:
ItemDefinition.getOnParentVersion()
-
setProtected
public void setProtected(boolean isProtected) throws RepositoryException
- Parameters:
isProtected
-true
if building a 'protected' child item definition, false otherwise.- Throws:
RepositoryException
- See Also:
ItemDefinition.isProtected()
-
setMandatory
public void setMandatory(boolean isMandatory) throws RepositoryException
- Parameters:
isMandatory
-true
if building a 'mandatory' child item definition, false otherwise.- Throws:
RepositoryException
-
build
public abstract void build() throws RepositoryException
Build this item definition an add it to its parent node type definition- Throws:
RepositoryException
-
-