|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.commons.cnd.DefinitionBuilderFactory.AbstractItemDefinitionBuilder<T>
T
- public abstract static class DefinitionBuilderFactory.AbstractItemDefinitionBuilder<T>
Builder for item definitions of type T
Field Summary | |
---|---|
protected boolean |
autocreate
See setAutoCreated(boolean) |
protected boolean |
isMandatory
See setMandatory(boolean) |
protected boolean |
isProtected
See setProtected(boolean) |
protected String |
name
See setName(String) |
protected int |
onParent
See setOnParentVersion(int) |
Constructor Summary | |
---|---|
DefinitionBuilderFactory.AbstractItemDefinitionBuilder()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String name
setName(String)
protected boolean autocreate
setAutoCreated(boolean)
protected int onParent
setOnParentVersion(int)
protected boolean isProtected
setProtected(boolean)
protected boolean isMandatory
setMandatory(boolean)
Constructor Detail |
---|
public DefinitionBuilderFactory.AbstractItemDefinitionBuilder()
Method Detail |
---|
public void setName(String name) throws RepositoryException
name
- the name of the child item definition being build
RepositoryException
ItemDefinition.getName()
public String getName()
public abstract void setDeclaringNodeType(String name) throws RepositoryException
name
- the name of the declaring node type.
RepositoryException
ItemDefinition.getDeclaringNodeType()
public void setAutoCreated(boolean autocreate) throws RepositoryException
autocreate
- true
if building a 'autocreate' child item
definition, false otherwise.
RepositoryException
ItemDefinition.isAutoCreated()
public void setOnParentVersion(int onParent) throws RepositoryException
onParent
- the 'onParentVersion' attribute of the child item definition being built
RepositoryException
ItemDefinition.getOnParentVersion()
public void setProtected(boolean isProtected) throws RepositoryException
isProtected
- true
if building a 'protected' child
item definition, false otherwise.
RepositoryException
ItemDefinition.isProtected()
public void setMandatory(boolean isMandatory) throws RepositoryException
isMandatory
- true
if building a 'mandatory' child
item definition, false otherwise.
RepositoryException
public abstract void build() throws RepositoryException
RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |