Class CallParamBuilder
- java.lang.Object
-
- org.apache.commons.digester3.binder.CallParamBuilder
-
- All Implemented Interfaces:
RuleProvider<CallParamRule>
public final class CallParamBuilder extends java.lang.Object
Builder chained when invokingLinkedRuleBuilder.callParam().- Since:
- 3.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CallParamRulecreateRule()Provides an instance ofRule.CallParamBuilderfromAttribute(java.lang.String attributeName)Sets the attribute from which to save the parameter value.CallParamBuilderfromStack(boolean fromStack)Flags the parameter to be set from the stack.Rget()Provides an instance ofRule.java.lang.StringgetNamespaceURI()Returns the namespace URI for which this Rule is relevant, if any.java.lang.StringgetPattern()Returns the rule pattern associated to this builder.CallParamBuilderofIndex(int paramIndex)Sets the zero-relative parameter number.protected voidreportError(java.lang.String methodChain, java.lang.String message)LinkedRuleBuilderthen()Come back to the mainLinkedRuleBuilder.CallParamBuilderwithStackIndex(int stackIndex)Sets the position of the object from the top of the stack.
-
-
-
Method Detail
-
ofIndex
public CallParamBuilder ofIndex(int paramIndex)
Sets the zero-relative parameter number.- Parameters:
paramIndex- The zero-relative parameter number- Returns:
- this builder instance
-
fromAttribute
public CallParamBuilder fromAttribute(java.lang.String attributeName)
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
public CallParamBuilder fromStack(boolean 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
public CallParamBuilder withStackIndex(int stackIndex)
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
protected CallParamRule createRule()
Provides an instance ofRule. Must never return null.- Returns:
- an instance of
Rule. - See Also:
RuleProvider.get()
-
then
public final LinkedRuleBuilder then()
Come back to the mainLinkedRuleBuilder.- Returns:
- the main
LinkedRuleBuilder
-
getNamespaceURI
public final java.lang.String 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
public final R get()
Provides an instance ofRule. Must never return null.- Specified by:
getin interfaceRuleProvider<R extends Rule>- Returns:
- an instance of
Rule.
-
reportError
protected final void reportError(java.lang.String methodChain, java.lang.String message)
-
getPattern
public final java.lang.String getPattern()
Returns the rule pattern associated to this builder.- Returns:
- The rule pattern associated to this builder
-
-