public class QNodeTypeDefinitionBuilder extends Object
QNodeTypeDefinition.| Constructor and Description |
|---|
QNodeTypeDefinitionBuilder() |
| Modifier and Type | Method and Description |
|---|---|
QNodeTypeDefinition |
build()
Creates a new
QNodeTypeDefinition instance based on the state of this builder. |
QNodeDefinition[] |
getChildNodeDefs() |
Name |
getName() |
Name |
getPrimaryItemName() |
QPropertyDefinition[] |
getPropertyDefs() |
Name[] |
getSuperTypes()
Returns an array containing the names of the supertypes of the node
type definition being built.
|
Name[] |
getSupportedMixinTypes()
Returns an array containing the names of additional mixin types supported
on this node type.
|
boolean |
hasOrderableChildNodes() |
boolean |
isAbstract() |
boolean |
isMixin() |
boolean |
isQueryable() |
void |
setAbstract(boolean isAbstract) |
void |
setChildNodeDefs(QNodeDefinition[] childDefs) |
void |
setMixin(boolean isMixin) |
void |
setName(Name name)
Set the name of the node type definition being built
|
void |
setOrderableChildNodes(boolean isOrderable) |
void |
setPrimaryItemName(Name primaryItemName) |
void |
setPropertyDefs(QPropertyDefinition[] propDefs) |
void |
setQueryable(boolean queryable) |
void |
setSupertypes(Name[] supertypes)
Specifies the supertypes of the node type definition being built
|
void |
setSupportedMixinTypes(Name[] names)
Sets the names of additional mixin types supported on this node type.
|
public void setName(Name name)
name - the nameNodeTypeDefinition.getName()public Name getName()
null if not set.NodeTypeDefinition.getName()public void setSupertypes(Name[] supertypes)
supertypes - the supertypesNodeTypeDefinition.getDeclaredSupertypeNames()public Name[] getSuperTypes()
NodeTypeDefinition.getDeclaredSupertypeNames()public void setMixin(boolean isMixin)
isMixin - true if building a mixin node type
definition; false otherwise.NodeTypeDefinition.isMixin()public boolean isMixin()
true if building a mixin node type definition;
false otherwise.NodeTypeDefinition.isMixin()public void setSupportedMixinTypes(Name[] names)
names - an array of mixin type names, or null when
there are no known constraintspublic Name[] getSupportedMixinTypes()
null when there are
no known constraints.public void setOrderableChildNodes(boolean isOrderable)
isOrderable - true if building a node type having
orderable child nodes; false otherwise.NodeTypeDefinition.hasOrderableChildNodes()public boolean hasOrderableChildNodes()
true if building a node type having orderable
child nodes; false otherwise.NodeTypeDefinition.hasOrderableChildNodes()public void setPrimaryItemName(Name primaryItemName)
primaryItemName - the name of the primary item or
null if not set.NodeTypeDefinition.getPrimaryItemName()public Name getPrimaryItemName()
null if not set.NodeTypeDefinition.getPrimaryItemName()public boolean isAbstract()
true if the node type is abstract.NodeTypeDefinition.isAbstract()public void setAbstract(boolean isAbstract)
isAbstract - true if building a node type that is abstract.NodeTypeDefinition.isAbstract()public boolean isQueryable()
true if the node type is queryableNodeTypeDefinition.isQueryable()public void setQueryable(boolean queryable)
queryable - true if building a node type that is queryableNodeTypeDefinition.isQueryable()public void setPropertyDefs(QPropertyDefinition[] propDefs)
propDefs - an array containing the property definitions of the node type definition
being built.NodeTypeDefinition.getDeclaredPropertyDefinitions()public QPropertyDefinition[] getPropertyDefs()
NodeTypeDefinition.getDeclaredPropertyDefinitions()public void setChildNodeDefs(QNodeDefinition[] childDefs)
childDefs - an array containing the child node definitions of the node type
definition being.NodeTypeDefinition.getDeclaredChildNodeDefinitions()public QNodeDefinition[] getChildNodeDefs()
NodeTypeDefinition.getDeclaredChildNodeDefinitions()public QNodeTypeDefinition build() throws IllegalStateException
QNodeTypeDefinition instance based on the state of this builder.QNodeTypeDefinition instance.IllegalStateException - if the instance has not the necessary information to build
the QNodeTypeDefinition instance.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.