org.apache.jackrabbit.spi.commons.nodetype.compact
Class QNodeTypeDefinitionsBuilder.QNodeDefinitionBuilder
java.lang.Object
org.apache.jackrabbit.spi.commons.nodetype.compact.QNodeTypeDefinitionsBuilder.QNodeDefinitionBuilder
- Direct Known Subclasses:
- QNodeTypeDefinitionsBuilderImpl.QNodeDefinitionBuilderImpl
- Enclosing class:
- QNodeTypeDefinitionsBuilder
public abstract class QNodeTypeDefinitionsBuilder.QNodeDefinitionBuilder
- extends Object
A builder for a QNodeDefinition
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QNodeTypeDefinitionsBuilder.QNodeDefinitionBuilder
public QNodeTypeDefinitionsBuilder.QNodeDefinitionBuilder()
setDefaultPrimaryType
public void setDefaultPrimaryType(Name name)
- Parameters:
name
- the name of the default primary type of the node definition being built.
getDefaultPrimaryType
public Name getDefaultPrimaryType()
- Returns:
- the name of the default primary type of the node definition being built.
setRequiredPrimaryTypes
public void setRequiredPrimaryTypes(Name[] names)
- Parameters:
names
- array of names of the required primary types of the node definition being
built.
getRequiredPrimaryTypes
public Name[] getRequiredPrimaryTypes()
- Returns:
- array of names of the required primary types of the node definition being built.
setAllowsSameNameSiblings
public void setAllowsSameNameSiblings(boolean allowSns)
- Parameters:
allowSns
- true if building a node definition with same name siblings, false
otherwise.
getAllowsSameNameSiblings
public boolean getAllowsSameNameSiblings()
- Returns:
- true if building a node definition with same name siblings, false otherwise.
build
public abstract QNodeDefinition build()
throws IllegalStateException
- Creates a new
QNodeDefinition
instance based on the state of this builder.
- Returns:
- a new
QNodeDefinition
instance.
- Throws:
IllegalStateException
- if the instance has not the necessary information to build
the 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-2008 The Apache Software Foundation. All Rights Reserved.