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
Builder for node type definitions, node definitions and property definitions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for item definitions of typeTstatic classBuilder for child node definitions of typeTstatic classBuilder for a node type definition of type T.static classBuilder for property definitions of typeT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract NCreate a new instance of aDefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilderabstract voidsetNamespace(String prefix, String uri) Add a mapping to the namespace mapabstract voidsetNamespaceMapping(N nsMapping) Set the namespace mapping to use for the node type definition being built
-
Constructor Details
-
DefinitionBuilderFactory
public DefinitionBuilderFactory()
-
-
Method Details
-
newNodeTypeDefinitionBuilder
public abstract DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<T> newNodeTypeDefinitionBuilder() throws RepositoryExceptionCreate a new instance of aDefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder- Returns:
- Throws:
RepositoryException
-
setNamespaceMapping
Set the namespace mapping to use for the node type definition being built- Parameters:
nsMapping-
-
getNamespaceMapping
- Returns:
- the namespace mapping used for the node type definition being built
-
setNamespace
Add a mapping to the namespace map- Parameters:
prefix-uri-- Throws:
RepositoryException
-