|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.digester3.binder.NodeCreateRuleProvider
public final class NodeCreateRuleProvider
Builder chained when invoking LinkedRuleBuilder.createNode()
.
Nested Class Summary | |
---|---|
static class |
NodeCreateRuleProvider.NodeType
Enumeration that wraps admitted Node node constants. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 use
protected NodeCreateRule createRule()
Rule
. Must never return null.
Rule
.get()
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |