Class CallParamBuilder
java.lang.Object
org.apache.commons.digester3.binder.CallParamBuilder
- All Implemented Interfaces:
RuleProvider<CallParamRule>
Builder chained when invoking
LinkedRuleBuilder.callParam().- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionprotected CallParamRuleProvides an instance ofRule.fromAttribute(String attributeName) Sets the attribute from which to save the parameter value.fromStack(boolean fromStack) Flags the parameter to be set from the stack.final CallParamRuleget()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.ofIndex(int paramIndex) Sets the zero-relative parameter number.protected final voidreportError(String methodChain, String message) final LinkedRuleBuilderthen()Come back to the mainLinkedRuleBuilder.withStackIndex(int stackIndex) Sets the position of the object from the top of the stack.
-
Method Details
-
ofIndex
Sets the zero-relative parameter number.- Parameters:
paramIndex- The zero-relative parameter number- Returns:
- this builder instance
-
fromAttribute
Sets the attribute from which to save the parameter value.- Parameters:
attributeName- The attribute from which to save the parameter value- Returns:
- this builder instance
-
fromStack
Flags the parameter to be set from the stack.- Parameters:
fromStack- the parameter flag to be set from the stack- Returns:
- this builder instance
-
withStackIndex
Sets the position of the object from the top of the stack.- Parameters:
stackIndex- The position of the object from the top of the stack- Returns:
- this builder instance
-
createRule
-
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
Provides an instance ofRule. Must never return null.- Specified by:
getin interfaceRuleProvider<R extends Rule>- Returns:
- an instance of
Rule.
-
reportError
-
getPattern
Returns the rule pattern associated to this builder.- Returns:
- The rule pattern associated to this builder
-