Class QItemDefinitionBuilder
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.nodetype.QItemDefinitionBuilder
-
- Direct Known Subclasses:
QNodeDefinitionBuilder,QPropertyDefinitionBuilder
public abstract class QItemDefinitionBuilder extends Object
A builder forQItemDefinition.
-
-
Constructor Summary
Constructors Constructor Description QItemDefinitionBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetAutoCreated()NamegetDeclaringNodeType()booleangetMandatory()NamegetName()intgetOnParentVersion()booleangetProtected()voidsetAutoCreated(boolean autocreate)voidsetDeclaringNodeType(Name type)voidsetMandatory(boolean isMandatory)voidsetName(Name name)voidsetOnParentVersion(int onParent)voidsetProtected(boolean isProtected)
-
-
-
Method Detail
-
setName
public void setName(Name name)
- Parameters:
name- the name of the child item definition being build- See Also:
ItemDefinition.getName()
-
getName
public Name getName()
- Returns:
- the name of the child item definition being build.
- See Also:
ItemDefinition.getName()
-
setDeclaringNodeType
public void setDeclaringNodeType(Name type)
- Parameters:
type- the name of the declaring node type.- See Also:
ItemDefinition.getDeclaringNodeType()
-
getDeclaringNodeType
public Name getDeclaringNodeType()
- Returns:
- the name of the declaring node type.
- See Also:
ItemDefinition.getDeclaringNodeType()
-
setAutoCreated
public void setAutoCreated(boolean autocreate)
- Parameters:
autocreate-trueif building a 'autocreate' child item definition, false otherwise.- See Also:
ItemDefinition.isAutoCreated()
-
getAutoCreated
public boolean getAutoCreated()
- Returns:
trueif building a 'autocreate' child item definition, false otherwise.- See Also:
ItemDefinition.isAutoCreated()
-
setOnParentVersion
public void setOnParentVersion(int onParent)
- Parameters:
onParent- the 'onParentVersion' attribute of the child item definition being built- See Also:
ItemDefinition.getOnParentVersion()
-
getOnParentVersion
public int getOnParentVersion()
- Returns:
- the 'onParentVersion' attribute of the child item definition being built
- See Also:
ItemDefinition.getOnParentVersion()
-
setProtected
public void setProtected(boolean isProtected)
- Parameters:
isProtected-trueif building a 'protected' child item definition, false otherwise.- See Also:
ItemDefinition.isProtected()
-
getProtected
public boolean getProtected()
- Returns:
trueif building a 'protected' child item definition, false otherwise.- See Also:
ItemDefinition.isProtected()
-
setMandatory
public void setMandatory(boolean isMandatory)
- Parameters:
isMandatory-trueif building a 'mandatory' child item definition, false otherwise.- See Also:
ItemDefinition.isMandatory()
-
getMandatory
public boolean getMandatory()
- Returns:
trueif building a 'mandatory' child item definition, false otherwise.- See Also:
ItemDefinition.isMandatory()
-
-