public final class NodeCreateRuleProvider extends Object
LinkedRuleBuilder.createNode()
.Modifier and Type | Class and Description |
---|---|
static class |
NodeCreateRuleProvider.NodeType
Enumeration that wraps admitted
Node node constants. |
Modifier and Type | Method and Description |
---|---|
protected NodeCreateRule |
createRule()
Provides an instance of
Rule . |
R |
get()
Provides an instance of
Rule . |
String |
getNamespaceURI()
Returns the namespace URI for which this Rule is relevant, if any.
|
String |
getPattern()
Returns the rule pattern associated to this builder.
|
NodeCreateRuleProvider |
ofType(NodeCreateRuleProvider.NodeType nodeType)
NodeCreateRule instance will be created either a DOM Element
or a DOM DocumentFragment , depending on the value of the
nodeType parameter. |
protected void |
reportError(String methodChain,
String message) |
LinkedRuleBuilder |
then()
Come back to the main
LinkedRuleBuilder . |
NodeCreateRuleProvider |
usingDocumentBuilder(DocumentBuilder documentBuilder)
NodeCreateRule instance will be created a DOM Element , but
lets users specify the JAXP DocumentBuilder that should be used when constructing the node tree. |
public NodeCreateRuleProvider ofType(NodeCreateRuleProvider.NodeType nodeType)
NodeCreateRule
instance will be created either a DOM Element
or a DOM DocumentFragment
, depending on the value of the
nodeType
parameter.nodeType
- the type of node to create, which can be either
Node.ELEMENT_NODE
or
Node.DOCUMENT_FRAGMENT_NODE
public NodeCreateRuleProvider usingDocumentBuilder(DocumentBuilder documentBuilder)
NodeCreateRule
instance will be created a DOM Element
, but
lets users specify the JAXP DocumentBuilder
that should be used when constructing the node tree.documentBuilder
- the JAXP DocumentBuilder
to useprotected NodeCreateRule createRule()
Rule
. Must never return null.public final LinkedRuleBuilder then()
LinkedRuleBuilder
.LinkedRuleBuilder
public final String getNamespaceURI()
public final R get()
Rule
. Must never return null.get
in interface RuleProvider<R extends Rule>
Rule
.protected final void reportError(String methodChain, String message)
public final String getPattern()
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.