Class AbstractParamTypeBuilder<R extends AbstractMethodRule>
java.lang.Object
org.apache.commons.digester3.binder.AbstractParamTypeBuilder<R>
- Type Parameters:
R- anyAbstractMethodRuleconcrete implementation, typicallySetNextRule,SetRootRuleandSetTopRule
- All Implemented Interfaces:
RuleProvider<R>
- Direct Known Subclasses:
SetNextBuilder, SetRootBuilder, SetTopBuilder
Builder chained when invoking
LinkedRuleBuilder.setNext(String),
LinkedRuleBuilder.setRoot(String) or LinkedRuleBuilder.setTop(String).- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract RProvides an instance ofRule.final AbstractParamTypeBuilder<R> fireOnBegin(boolean fireOnBegin) Marks the rule be invoked whenbeginorendevents match.final Rget()Provides an instance ofRule.final StringReturns the namespace URI for which this Rule is relevant, if any.final StringReturns the rule pattern associated to this builder.protected final voidreportError(String methodChain, String message) final LinkedRuleBuilderthen()Come back to the mainLinkedRuleBuilder.final AbstractParamTypeBuilder<R> useExactMatch(boolean useExactMatch) Sets exact matching being used.final AbstractParamTypeBuilder<R> withParameterType(Class<?> paramType) Sets the Java class of the method's argument.final AbstractParamTypeBuilder<R> withParameterType(String paramType) Sets the Java class name of the method's argument.
-
Method Details
-
withParameterType
Sets the Java class of the method's argument. If you wish to use a primitive type, specify the corresonding Java wrapper class instead, such asjava.lang.Booleanfor abooleanparameter.- Parameters:
paramType- The Java class of the method's argument- Returns:
- this builder instance
-
withParameterType
Sets the Java class name of the method's argument. If you wish to use a primitive type, specify the corresonding Java wrapper class instead, such asjava.lang.Booleanfor abooleanparameter.- Parameters:
paramType- The Java class name of the method's argument- Returns:
- this builder instance
-
useExactMatch
Sets exact matching being used.- Parameters:
useExactMatch- The exact matching being used- Returns:
- this builder instance
-
fireOnBegin
Marks the rule be invoked whenbeginorendevents match.- Parameters:
fireOnBegin- true, to invoke the rule atbegin, false forend- Returns:
- this builder instance
-
then
Come back to the mainLinkedRuleBuilder.- Returns:
- the main
LinkedRuleBuilder
-
getNamespaceURI
Returns the namespace URI for which this Rule is relevant, if any.- Returns:
- The namespace URI for which this Rule is relevant, if any
-
get
-
reportError
-
getPattern
Returns the rule pattern associated to this builder.- Returns:
- The rule pattern associated to this builder
-
createRule
-