Class QItemDefinitionBuilder
java.lang.Object
org.apache.jackrabbit.spi.commons.nodetype.QItemDefinitionBuilder
- Direct Known Subclasses:
QNodeDefinitionBuilder,QPropertyDefinitionBuilder
A builder for
QItemDefinition.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetName()intbooleanvoidsetAutoCreated(boolean autocreate) voidsetDeclaringNodeType(Name type) voidsetMandatory(boolean isMandatory) voidvoidsetOnParentVersion(int onParent) voidsetProtected(boolean isProtected)
-
Constructor Details
-
QItemDefinitionBuilder
public QItemDefinitionBuilder()
-
-
Method Details
-
setName
- Parameters:
name- the name of the child item definition being build- See Also:
-
getName
- Returns:
- the name of the child item definition being build.
- See Also:
-
setDeclaringNodeType
- Parameters:
type- the name of the declaring node type.- See Also:
-
getDeclaringNodeType
- Returns:
- the name of the declaring node type.
- See Also:
-
setAutoCreated
public void setAutoCreated(boolean autocreate) - Parameters:
autocreate-trueif building a 'autocreate' child item definition, false otherwise.- See Also:
-
getAutoCreated
public boolean getAutoCreated()- Returns:
trueif building a 'autocreate' child item definition, false otherwise.- See Also:
-
setOnParentVersion
public void setOnParentVersion(int onParent) - Parameters:
onParent- the 'onParentVersion' attribute of the child item definition being built- See Also:
-
getOnParentVersion
public int getOnParentVersion()- Returns:
- the 'onParentVersion' attribute of the child item definition being built
- See Also:
-
setProtected
public void setProtected(boolean isProtected) - Parameters:
isProtected-trueif building a 'protected' child item definition, false otherwise.- See Also:
-
getProtected
public boolean getProtected()- Returns:
trueif building a 'protected' child item definition, false otherwise.- See Also:
-
setMandatory
public void setMandatory(boolean isMandatory) - Parameters:
isMandatory-trueif building a 'mandatory' child item definition, false otherwise.- See Also:
-
getMandatory
public boolean getMandatory()- Returns:
trueif building a 'mandatory' child item definition, false otherwise.- See Also:
-