Class QDefinitionBuilderFactory
- java.lang.Object
-
- org.apache.jackrabbit.commons.cnd.DefinitionBuilderFactory<QNodeTypeDefinition,NamespaceMapping>
-
- org.apache.jackrabbit.spi.commons.nodetype.QDefinitionBuilderFactory
-
public class QDefinitionBuilderFactory extends DefinitionBuilderFactory<QNodeTypeDefinition,NamespaceMapping>
This implementation ofDefinitionBuilderFactory
can be used with theCompactNodeTypeDefReader
to produce node type definitions of typeQNodeTypeDefinition
and a namespace map of typeNamespaceMapping
. It usesQDefinitionBuilderFactory.QNodeTypeDefinitionBuilderImpl
for building node type definitions,QDefinitionBuilderFactory.QPropertyDefinitionBuilderImpl
for building property definitions, andQDefinitionBuilderFactory.QNodeDefinitionBuilderImpl
for building node definitions. It further usesNameFactoryImpl
for creatingName
s andQValueFactoryImpl
for creatingQValue
s.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.jackrabbit.commons.cnd.DefinitionBuilderFactory
DefinitionBuilderFactory.AbstractItemDefinitionBuilder<T>, DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<T>, DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<T>, DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<T>
-
-
Field Summary
Fields Modifier and Type Field Description static NamespaceMapping
NS_DEFAULTS
Default namespace mappings
-
Constructor Summary
Constructors Constructor Description QDefinitionBuilderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamespaceMapping
getNamespaceMapping()
DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<QNodeTypeDefinition>
newNodeTypeDefinitionBuilder()
Create a new instance of aDefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder
void
setNamespace(String prefix, String uri)
Add a mapping to the namespace mapvoid
setNamespaceMapping(NamespaceMapping nsMapping)
Set the namespace mapping to use for the node type definition being built
-
-
-
Field Detail
-
NS_DEFAULTS
public static final NamespaceMapping NS_DEFAULTS
Default namespace mappings
-
-
Method Detail
-
newNodeTypeDefinitionBuilder
public DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<QNodeTypeDefinition> newNodeTypeDefinitionBuilder()
Description copied from class:DefinitionBuilderFactory
Create a new instance of aDefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder
- Specified by:
newNodeTypeDefinitionBuilder
in classDefinitionBuilderFactory<QNodeTypeDefinition,NamespaceMapping>
- Returns:
-
setNamespaceMapping
public void setNamespaceMapping(NamespaceMapping nsMapping)
Description copied from class:DefinitionBuilderFactory
Set the namespace mapping to use for the node type definition being built- Specified by:
setNamespaceMapping
in classDefinitionBuilderFactory<QNodeTypeDefinition,NamespaceMapping>
-
getNamespaceMapping
public NamespaceMapping getNamespaceMapping()
- Specified by:
getNamespaceMapping
in classDefinitionBuilderFactory<QNodeTypeDefinition,NamespaceMapping>
- Returns:
- the namespace mapping used for the node type definition being built
-
setNamespace
public void setNamespace(String prefix, String uri)
Description copied from class:DefinitionBuilderFactory
Add a mapping to the namespace map- Specified by:
setNamespace
in classDefinitionBuilderFactory<QNodeTypeDefinition,NamespaceMapping>
-
-