T
- public abstract static class DefinitionBuilderFactory.AbstractItemDefinitionBuilder<T> extends Object
T
Modifier and Type | Field and Description |
---|---|
protected boolean |
autocreate
|
protected boolean |
isMandatory
|
protected boolean |
isProtected
|
protected String |
name
See
setName(String) |
protected int |
onParent
|
Constructor and Description |
---|
DefinitionBuilderFactory.AbstractItemDefinitionBuilder() |
Modifier and Type | Method and Description |
---|---|
abstract void |
build()
Build this item definition an add it to its parent node type definition
|
String |
getName()
Name of the child item definition being built
|
void |
setAutoCreated(boolean autocreate) |
abstract void |
setDeclaringNodeType(String name) |
void |
setMandatory(boolean isMandatory) |
void |
setName(String name) |
void |
setOnParentVersion(int onParent) |
void |
setProtected(boolean isProtected) |
protected String name
setName(String)
protected boolean autocreate
protected int onParent
protected boolean isProtected
protected boolean isMandatory
public DefinitionBuilderFactory.AbstractItemDefinitionBuilder()
public void setName(String name) throws javax.jcr.RepositoryException
name
- the name of the child item definition being buildjavax.jcr.RepositoryException
ItemDefinition.getName()
public String getName()
public abstract void setDeclaringNodeType(String name) throws javax.jcr.RepositoryException
name
- the name of the declaring node type.javax.jcr.RepositoryException
ItemDefinition.getDeclaringNodeType()
public void setAutoCreated(boolean autocreate) throws javax.jcr.RepositoryException
autocreate
- true
if building a 'autocreate' child item
definition, false otherwise.javax.jcr.RepositoryException
ItemDefinition.isAutoCreated()
public void setOnParentVersion(int onParent) throws javax.jcr.RepositoryException
onParent
- the 'onParentVersion' attribute of the child item definition being builtjavax.jcr.RepositoryException
ItemDefinition.getOnParentVersion()
public void setProtected(boolean isProtected) throws javax.jcr.RepositoryException
isProtected
- true
if building a 'protected' child
item definition, false otherwise.javax.jcr.RepositoryException
ItemDefinition.isProtected()
public void setMandatory(boolean isMandatory) throws javax.jcr.RepositoryException
isMandatory
- true
if building a 'mandatory' child
item definition, false otherwise.javax.jcr.RepositoryException
public abstract void build() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.