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 |
---|
DefinitionBuilderFactory.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 DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder()
public void setName(String name) throws javax.jcr.RepositoryException
name
- javax.jcr.RepositoryException
- if the name is not validNodeTypeDefinition.getName()
public String getName()
public abstract void addSupertype(String name) throws javax.jcr.RepositoryException
name
- name of the the supertypejavax.jcr.RepositoryException
- if the name is not validNodeTypeDefinition.getDeclaredSupertypeNames()
public void setMixin(boolean isMixin) throws javax.jcr.RepositoryException
isMixin
- true
if building a mixin node type
definition; false
otherwise.javax.jcr.RepositoryException
NodeTypeDefinition.isMixin()
public void setOrderableChildNodes(boolean isOrderable) throws javax.jcr.RepositoryException
isOrderable
- true
if building a node type having
orderable child nodes; false
otherwise.javax.jcr.RepositoryException
NodeTypeDefinition.hasOrderableChildNodes()
public abstract void setPrimaryItemName(String name) throws javax.jcr.RepositoryException
name
- the name of the primary item.javax.jcr.RepositoryException
NodeTypeDefinition.getPrimaryItemName()
public void setAbstract(boolean isAbstract) throws javax.jcr.RepositoryException
isAbstract
- true
if building a node type that is abstract.javax.jcr.RepositoryException
NodeTypeDefinition.isAbstract()
public void setQueryable(boolean queryable) throws javax.jcr.RepositoryException
queryable
- true
if building a node type that is queryablejavax.jcr.RepositoryException
NodeTypeDefinition.isQueryable()
public abstract DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<T> newPropertyDefinitionBuilder() throws javax.jcr.RepositoryException
DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder
which can be used to add property definitions to the node type definition being built.javax.jcr.RepositoryException
public abstract DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<T> newNodeDefinitionBuilder() throws javax.jcr.RepositoryException
DefinitionBuilderFactory.AbstractNodeDefinitionBuilder
which can be used to add child node definitions to the node type definition being built.javax.jcr.RepositoryException
public abstract T build() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.