|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.commons.cnd.DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<T>
T
- public abstract static class DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<T>
Builder for a node type definition of type T.
Field Summary | |
---|---|
protected boolean |
isAbstract
See setAbstract(boolean) |
protected boolean |
isMixin
See setMixin(boolean) |
protected boolean |
isOrderable
See setOrderableChildNodes(boolean) |
protected String |
name
See setName(String) |
protected boolean |
queryable
See setQueryable(boolean) |
Constructor Summary | |
---|---|
DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String name
setName(String)
protected boolean isMixin
setMixin(boolean)
protected boolean isOrderable
setOrderableChildNodes(boolean)
protected boolean isAbstract
setAbstract(boolean)
protected boolean queryable
setQueryable(boolean)
Constructor Detail |
---|
public DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder()
Method Detail |
---|
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 supertype
RepositoryException
- 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 queryable
RepositoryException
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |