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.RepositoryException
NodeTypeDefinition.isMixin()
public void setOrderableChildNodes(boolean isOrderable) throws RepositoryException
isOrderable
- true
if building a node type having
orderable child nodes; false
otherwise.RepositoryException
NodeTypeDefinition.hasOrderableChildNodes()
public abstract void setPrimaryItemName(String name) throws RepositoryException
name
- the name of the primary item.RepositoryException
NodeTypeDefinition.getPrimaryItemName()
public void setAbstract(boolean isAbstract) throws RepositoryException
isAbstract
- true
if building a node type that is abstract.RepositoryException
NodeTypeDefinition.isAbstract()
public void setQueryable(boolean queryable) throws RepositoryException
queryable
- true
if building a node type that is queryableRepositoryException
NodeTypeDefinition.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.RepositoryException
public 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.RepositoryException
public abstract T build() throws RepositoryException
RepositoryException
Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.