T - public abstract static class DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isAbstract
|
protected boolean |
isMixin
|
protected boolean |
isOrderable
|
protected String |
name
See
setName(String) |
protected boolean |
queryable
|
| Constructor and Description |
|---|
AbstractNodeTypeDefinitionBuilder() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addSupertype(String name)
Add the given name to the set of supertypes of the node type definition
being built
|
abstract T |
build()
Build this node type definition
|
String |
getName()
Returns the name of the node type definition being built
|
abstract DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<T> |
newNodeDefinitionBuilder()
Create a new instance fo a
DefinitionBuilderFactory.AbstractNodeDefinitionBuilder
which can be used to add child node definitions to the node type definition being built. |
abstract DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<T> |
newPropertyDefinitionBuilder()
Create a new instance of a
DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder
which can be used to add property definitions to the node type definition being built. |
void |
setAbstract(boolean isAbstract) |
void |
setMixin(boolean isMixin) |
void |
setName(String name)
Set the name of the node type definition being built
|
void |
setOrderableChildNodes(boolean isOrderable) |
abstract void |
setPrimaryItemName(String name) |
void |
setQueryable(boolean queryable) |
protected String name
setName(String)protected boolean isMixin
protected boolean isOrderable
protected boolean isAbstract
protected boolean queryable
public void setName(String name) throws RepositoryException
name - RepositoryException - if the name is not validNodeTypeDefinition.getName()public String getName()
public abstract void addSupertype(String name) throws RepositoryException
name - name of the the supertypeRepositoryException - if the name is not validNodeTypeDefinition.getDeclaredSupertypeNames()public void setMixin(boolean isMixin)
throws RepositoryException
isMixin - true if building a mixin node type
definition; false otherwise.RepositoryExceptionNodeTypeDefinition.isMixin()public void setOrderableChildNodes(boolean isOrderable)
throws RepositoryException
isOrderable - true if building a node type having
orderable child nodes; false otherwise.RepositoryExceptionNodeTypeDefinition.hasOrderableChildNodes()public abstract void setPrimaryItemName(String name) throws RepositoryException
name - the name of the primary item.RepositoryExceptionNodeTypeDefinition.getPrimaryItemName()public void setAbstract(boolean isAbstract)
throws RepositoryException
isAbstract - true if building a node type that is abstract.RepositoryExceptionNodeTypeDefinition.isAbstract()public void setQueryable(boolean queryable)
throws RepositoryException
queryable - true if building a node type that is queryableRepositoryExceptionNodeTypeDefinition.isQueryable()public abstract DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<T> newPropertyDefinitionBuilder() throws RepositoryException
DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder
which can be used to add property definitions to the node type definition being built.RepositoryExceptionpublic abstract DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<T> newNodeDefinitionBuilder() throws RepositoryException
DefinitionBuilderFactory.AbstractNodeDefinitionBuilder
which can be used to add child node definitions to the node type definition being built.RepositoryExceptionpublic abstract T build() throws RepositoryException
RepositoryExceptionCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.