public class QDefinitionBuilderFactory extends DefinitionBuilderFactory<QNodeTypeDefinition,NamespaceMapping>
DefinitionBuilderFactory
can be used with
the CompactNodeTypeDefReader
to produce node type definitions of type
QNodeTypeDefinition
and a namespace map of type NamespaceMapping
.
It uses QNodeTypeDefinitionBuilderImpl
for building node type definitions,
QPropertyDefinitionBuilderImpl
for building property definitions, and
QNodeDefinitionBuilderImpl
for building node definitions. It further uses
NameFactoryImpl
for creating Name
s and QValueFactoryImpl
for
creating QValue
s.DefinitionBuilderFactory.AbstractItemDefinitionBuilder<T>, DefinitionBuilderFactory.AbstractNodeDefinitionBuilder<T>, DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<T>, DefinitionBuilderFactory.AbstractPropertyDefinitionBuilder<T>
Modifier and Type | Field and Description |
---|---|
static NamespaceMapping |
NS_DEFAULTS
Default namespace mappings
|
Constructor and Description |
---|
QDefinitionBuilderFactory() |
Modifier and Type | Method and Description |
---|---|
NamespaceMapping |
getNamespaceMapping() |
DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<QNodeTypeDefinition> |
newNodeTypeDefinitionBuilder()
Create a new instance of a
DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder |
void |
setNamespace(java.lang.String prefix,
java.lang.String uri)
Add a mapping to the namespace map
|
void |
setNamespaceMapping(NamespaceMapping nsMapping)
Set the namespace mapping to use for the node type definition being built
|
public static final NamespaceMapping NS_DEFAULTS
public DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<QNodeTypeDefinition> newNodeTypeDefinitionBuilder()
DefinitionBuilderFactory
DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder
newNodeTypeDefinitionBuilder
in class DefinitionBuilderFactory<QNodeTypeDefinition,NamespaceMapping>
public void setNamespaceMapping(NamespaceMapping nsMapping)
DefinitionBuilderFactory
setNamespaceMapping
in class DefinitionBuilderFactory<QNodeTypeDefinition,NamespaceMapping>
public NamespaceMapping getNamespaceMapping()
getNamespaceMapping
in class DefinitionBuilderFactory<QNodeTypeDefinition,NamespaceMapping>
public void setNamespace(java.lang.String prefix, java.lang.String uri)
DefinitionBuilderFactory
setNamespace
in class DefinitionBuilderFactory<QNodeTypeDefinition,NamespaceMapping>
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"