Class CallParamBuilder
java.lang.Object
org.apache.commons.digester3.binder.AbstractBackToLinkedRuleBuilder<CallParamRule>
org.apache.commons.digester3.binder.CallParamBuilder
- All Implemented Interfaces:
RuleProvider<CallParamRule>
Builder chained when invoking
LinkedRuleBuilder.callParam()
.- Since:
- 3.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCallParamBuilder
(String keyPattern, String namespaceURI, RulesBinder mainBinder, LinkedRuleBuilder mainBuilder) -
Method Summary
Modifier and TypeMethodDescriptionprotected CallParamRule
Provides 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.ofIndex
(int paramIndex) Sets the zero-relative parameter number.withStackIndex
(int stackIndex) Sets the position of the object from the top of the stack.Methods inherited from class org.apache.commons.digester3.binder.AbstractBackToLinkedRuleBuilder
get, getNamespaceURI, getPattern, reportError, then
-
Field Details
-
paramIndex
private int paramIndex -
stackIndex
private int stackIndex -
fromStack
private boolean fromStack -
attributeName
-
-
Constructor Details
-
CallParamBuilder
CallParamBuilder(String keyPattern, String namespaceURI, RulesBinder mainBinder, LinkedRuleBuilder mainBuilder)
-
-
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
Provides an instance ofRule
. Must never return null.- Specified by:
createRule
in classAbstractBackToLinkedRuleBuilder<CallParamRule>
- Returns:
- an instance of
Rule
. - See Also:
-