org.apache.jackrabbit.spi.commons.nodetype.compact
Class QNodeTypeDefinitionsBuilderImpl.QNodeDefinitionBuilderImpl
java.lang.Object
org.apache.jackrabbit.spi.commons.nodetype.compact.QNodeTypeDefinitionsBuilder.QNodeDefinitionBuilder
org.apache.jackrabbit.spi.commons.nodetype.compact.QNodeTypeDefinitionsBuilderImpl.QNodeDefinitionBuilderImpl
- Enclosing class:
- QNodeTypeDefinitionsBuilderImpl
public class QNodeTypeDefinitionsBuilderImpl.QNodeDefinitionBuilderImpl
- extends QNodeTypeDefinitionsBuilder.QNodeDefinitionBuilder
Default implementation of a QNodeDefinitionBuilder
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QNodeTypeDefinitionsBuilderImpl.QNodeDefinitionBuilderImpl
public QNodeTypeDefinitionsBuilderImpl.QNodeDefinitionBuilderImpl()
build
public QNodeDefinition build()
- Description copied from class:
QNodeTypeDefinitionsBuilder.QNodeDefinitionBuilder
- Creates a new
QNodeDefinition
instance based on the state of this builder.
- Specified by:
build
in class QNodeTypeDefinitionsBuilder.QNodeDefinitionBuilder
- Returns:
- a new
QNodeDefinition
instance.
setName
public void setName(Name name)
- Parameters:
name
- the name of the child item definition being build
getName
public Name getName()
- Returns:
- the name of the child item definition being build.
setDeclaringNodeType
public void setDeclaringNodeType(Name type)
- Parameters:
type
- the name of the declaring node type.
getDeclaringNodeType
public Name getDeclaringNodeType()
- Returns:
- the name of the declaring node type.
setAutoCreated
public void setAutoCreated(boolean autocreate)
- Parameters:
autocreate
- true if building a 'autocreate' child item definition, false otherwise.
getAutoCreated
public boolean getAutoCreated()
- Returns:
- true if building a 'autocreate' child item definition, false otherwise.
setOnParentVersion
public void setOnParentVersion(int onParent)
- Parameters:
onParent
- the 'onParentVersion' attribute of the child item definition being built
getOnParentVersion
public int getOnParentVersion()
- Returns:
- the 'onParentVersion' attribute of the child item definition being built
setProtected
public void setProtected(boolean isProtected)
- Parameters:
isProtected
- true if building a 'protected' child item definition, false otherwise.
getProtected
public boolean getProtected()
- Returns:
- true if building a 'protected' child item definition, false otherwise.
setMandatory
public void setMandatory(boolean isMandatory)
- Parameters:
isMandatory
- true if building a 'mandatory' child item definition, false otherwise.
getMandatory
public boolean getMandatory()
- Returns:
- true if building a 'mandatory' child item definition, false otherwise.
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.