public class QNodeDefinitionBuilder extends QItemDefinitionBuilder
QNodeDefinition
.Constructor and Description |
---|
QNodeDefinitionBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
addRequiredPrimaryType(Name name)
Adds a required primary type of the node definition being built.
|
QNodeDefinition |
build()
Creates a new
QNodeDefinition instance based on the state of this
builder. |
boolean |
getAllowsSameNameSiblings() |
Name |
getDefaultPrimaryType() |
Name[] |
getRequiredPrimaryTypes() |
void |
setAllowsSameNameSiblings(boolean allowSns) |
void |
setDefaultPrimaryType(Name name) |
void |
setRequiredPrimaryTypes(Name[] names) |
getAutoCreated, getDeclaringNodeType, getMandatory, getName, getOnParentVersion, getProtected, setAutoCreated, setDeclaringNodeType, setMandatory, setName, setOnParentVersion, setProtected
public void setDefaultPrimaryType(Name name)
name
- the name of the default primary type of the node definition
being built.public Name getDefaultPrimaryType()
public void addRequiredPrimaryType(Name name)
name
- the name of a required primary type.public void setRequiredPrimaryTypes(Name[] names)
names
- array of names of the required primary types of the node
definition being built.public Name[] getRequiredPrimaryTypes()
public void setAllowsSameNameSiblings(boolean allowSns)
allowSns
- true if building a node definition with same name
siblings, false otherwise.public boolean getAllowsSameNameSiblings()
public QNodeDefinition build() throws java.lang.IllegalStateException
QNodeDefinition
instance based on the state of this
builder.QNodeDefinition
instance.java.lang.IllegalStateException
- if the instance has not the necessary
information to build the QNodeDefinition
instance."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"