R
- any AbstractMethodRule
concrete implementation, typically
SetNextRule
, SetRootRule
and SetTopRule
public abstract class AbstractParamTypeBuilder<R extends AbstractMethodRule> extends Object
LinkedRuleBuilder.setNext(String)
,
LinkedRuleBuilder.setRoot(String)
or LinkedRuleBuilder.setTop(String)
.Modifier and Type | Method and Description |
---|---|
protected abstract R |
createRule()
Provides an instance of
Rule . |
AbstractParamTypeBuilder<R> |
fireOnBegin(boolean fireOnBegin)
Marks the rule be invoked when
begin or end events match. |
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.
|
protected void |
reportError(String methodChain,
String message) |
LinkedRuleBuilder |
then()
Come back to the main
LinkedRuleBuilder . |
AbstractParamTypeBuilder<R> |
useExactMatch(boolean useExactMatch)
Sets exact matching being used.
|
AbstractParamTypeBuilder<R> |
withParameterType(Class<?> paramType)
Sets the Java class of the method's argument.
|
AbstractParamTypeBuilder<R> |
withParameterType(String paramType)
Sets the Java class name of the method's argument.
|
public final AbstractParamTypeBuilder<R> withParameterType(Class<?> paramType)
java.lang.Boolean
for a boolean
parameter.paramType
- The Java class of the method's argumentpublic final AbstractParamTypeBuilder<R> withParameterType(String paramType)
java.lang.Boolean
for a boolean
parameter.paramType
- The Java class name of the method's argumentpublic final AbstractParamTypeBuilder<R> useExactMatch(boolean useExactMatch)
useExactMatch
- The exact matching being usedpublic final AbstractParamTypeBuilder<R> fireOnBegin(boolean fireOnBegin)
begin
or end
events match.fireOnBegin
- true, to invoke the rule at begin
, false for end
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()
protected abstract R createRule()
Rule
. Must never return null.Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.