public final class CallParamBuilder extends Object
LinkedRuleBuilder.callParam()
.Modifier and Type | Method and Description |
---|---|
protected CallParamRule |
createRule()
Provides an instance of
Rule . |
CallParamBuilder |
fromAttribute(String attributeName)
Sets the attribute from which to save the parameter value.
|
CallParamBuilder |
fromStack(boolean fromStack)
Flags the parameter to be set from the stack.
|
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.
|
CallParamBuilder |
ofIndex(int paramIndex)
Sets the zero-relative parameter number.
|
protected void |
reportError(String methodChain,
String message) |
LinkedRuleBuilder |
then()
Come back to the main
LinkedRuleBuilder . |
CallParamBuilder |
withStackIndex(int stackIndex)
Sets the position of the object from the top of the stack.
|
public CallParamBuilder ofIndex(int paramIndex)
paramIndex
- The zero-relative parameter numberpublic CallParamBuilder fromAttribute(String attributeName)
attributeName
- The attribute from which to save the parameter valuepublic CallParamBuilder fromStack(boolean fromStack)
fromStack
- the parameter flag to be set from the stackpublic CallParamBuilder withStackIndex(int stackIndex)
stackIndex
- The position of the object from the top of the stackprotected CallParamRule createRule()
Rule
. Must never return null.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()
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.