|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.digester3.binder.AbstractParamTypeBuilder<R>
R
- any AbstractMethodRule
concrete implementation, typically
SetNextRule
, SetRootRule
and SetTopRule
public abstract class AbstractParamTypeBuilder<R extends AbstractMethodRule>
Builder chained when invoking LinkedRuleBuilder.setNext(String)
,
LinkedRuleBuilder.setRoot(String)
or LinkedRuleBuilder.setTop(String)
.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public final AbstractParamTypeBuilder<R> withParameterType(Class<?> paramType)
java.lang.Boolean
for a boolean
parameter.
paramType
- The Java class of the method's argument
public final AbstractParamTypeBuilder<R> withParameterType(String paramType)
java.lang.Boolean
for a boolean
parameter.
paramType
- The Java class name of the method's argument
public final AbstractParamTypeBuilder<R> useExactMatch(boolean useExactMatch)
useExactMatch
- The exact matching being used
public 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.
Rule
.get()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |