Class DefinitionBuilderFactory<T,N>
- java.lang.Object
-
- org.apache.jackrabbit.commons.cnd.DefinitionBuilderFactory<T,N>
-
- Type Parameters:
T
- type of the node type definitionN
- type of the namespace mapping
- Direct Known Subclasses:
QDefinitionBuilderFactory
,TemplateBuilderFactory
public abstract class DefinitionBuilderFactory<T,N> extends java.lang.Object
Builder for node type definitions, node definitions and property definitions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefinitionBuilderFactory.AbstractItemDefinitionBuilder<T>
Builder for item definitions of typeT
static class
DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<T>
Builder for child node definitions of typeT
static class
DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<T>
Builder for a node type definition of type T.static class
DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<T>
Builder for property definitions of typeT
-
Constructor Summary
Constructors Constructor Description DefinitionBuilderFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract N
getNamespaceMapping()
abstract DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<T>
newNodeTypeDefinitionBuilder()
Create a new instance of aDefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder
abstract void
setNamespace(java.lang.String prefix, java.lang.String uri)
Add a mapping to the namespace mapabstract void
setNamespaceMapping(N nsMapping)
Set the namespace mapping to use for the node type definition being built
-
-
-
Method Detail
-
newNodeTypeDefinitionBuilder
public abstract DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<T> newNodeTypeDefinitionBuilder() throws RepositoryException
Create a new instance of aDefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder
- Returns:
- Throws:
RepositoryException
-
setNamespaceMapping
public abstract void setNamespaceMapping(N nsMapping)
Set the namespace mapping to use for the node type definition being built- Parameters:
nsMapping
-
-
getNamespaceMapping
public abstract N getNamespaceMapping()
- Returns:
- the namespace mapping used for the node type definition being built
-
setNamespace
public abstract void setNamespace(java.lang.String prefix, java.lang.String uri) throws RepositoryException
Add a mapping to the namespace map- Parameters:
prefix
-uri
-- Throws:
RepositoryException
-
-