|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi.commons.nodetype.QNodeTypeDefinitionBuilder
public class QNodeTypeDefinitionBuilder
A builder for QNodeTypeDefinition.
| Constructor Summary | |
|---|---|
QNodeTypeDefinitionBuilder()
|
|
| Method Summary | |
|---|---|
org.apache.jackrabbit.spi.QNodeTypeDefinition |
build()
Creates a new QNodeTypeDefinition instance based on the state of this builder. |
org.apache.jackrabbit.spi.QNodeDefinition[] |
getChildNodeDefs()
|
org.apache.jackrabbit.spi.Name |
getName()
|
org.apache.jackrabbit.spi.Name |
getPrimaryItemName()
|
org.apache.jackrabbit.spi.QPropertyDefinition[] |
getPropertyDefs()
|
org.apache.jackrabbit.spi.Name[] |
getSuperTypes()
Returns an array containing the names of the supertypes of the node type definition being built. |
org.apache.jackrabbit.spi.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(org.apache.jackrabbit.spi.QNodeDefinition[] childDefs)
|
void |
setMixin(boolean isMixin)
|
void |
setName(org.apache.jackrabbit.spi.Name name)
Set the name of the node type definition being built |
void |
setOrderableChildNodes(boolean isOrderable)
|
void |
setPrimaryItemName(org.apache.jackrabbit.spi.Name primaryItemName)
|
void |
setPropertyDefs(org.apache.jackrabbit.spi.QPropertyDefinition[] propDefs)
|
void |
setQueryable(boolean queryable)
|
void |
setSupertypes(org.apache.jackrabbit.spi.Name[] supertypes)
Specifies the supertypes of the node type definition being built |
void |
setSupportedMixinTypes(org.apache.jackrabbit.spi.Name[] names)
Sets the names of additional mixin types supported on this node type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QNodeTypeDefinitionBuilder()
| Method Detail |
|---|
public void setName(org.apache.jackrabbit.spi.Name name)
name - the nameNodeTypeDefinition.getName()public org.apache.jackrabbit.spi.Name getName()
null if not set.NodeTypeDefinition.getName()public void setSupertypes(org.apache.jackrabbit.spi.Name[] supertypes)
supertypes - the supertypesNodeTypeDefinition.getDeclaredSupertypeNames()public org.apache.jackrabbit.spi.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(org.apache.jackrabbit.spi.Name[] names)
names - an array of mixin type names, or null when
there are no known constraintspublic org.apache.jackrabbit.spi.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(org.apache.jackrabbit.spi.Name primaryItemName)
primaryItemName - the name of the primary item or
null if not set.NodeTypeDefinition.getPrimaryItemName()public org.apache.jackrabbit.spi.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(org.apache.jackrabbit.spi.QPropertyDefinition[] propDefs)
propDefs - an array containing the property definitions of the node type definition
being built.NodeTypeDefinition.getDeclaredPropertyDefinitions()public org.apache.jackrabbit.spi.QPropertyDefinition[] getPropertyDefs()
NodeTypeDefinition.getDeclaredPropertyDefinitions()public void setChildNodeDefs(org.apache.jackrabbit.spi.QNodeDefinition[] childDefs)
childDefs - an array containing the child node definitions of the node type
definition being.NodeTypeDefinition.getDeclaredChildNodeDefinitions()public org.apache.jackrabbit.spi.QNodeDefinition[] getChildNodeDefs()
NodeTypeDefinition.getDeclaredChildNodeDefinitions()
public org.apache.jackrabbit.spi.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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||