Class AbstractParamTypeBuilder<R extends AbstractMethodRule>
java.lang.Object
org.apache.commons.digester3.binder.AbstractBackToLinkedRuleBuilder<R>
org.apache.commons.digester3.binder.AbstractParamTypeBuilder<R>
- Type Parameters:
R
- anyAbstractMethodRule
concrete implementation, typicallySetNextRule
,SetRootRule
andSetTopRule
- All Implemented Interfaces:
RuleProvider<R>
- Direct Known Subclasses:
SetNextBuilder
,SetRootBuilder
,SetTopBuilder
public abstract class AbstractParamTypeBuilder<R extends AbstractMethodRule>
extends AbstractBackToLinkedRuleBuilder<R>
Builder chained when invoking
LinkedRuleBuilder.setNext(String)
,
LinkedRuleBuilder.setRoot(String)
or LinkedRuleBuilder.setTop(String)
.- Since:
- 3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClassLoader
private boolean
private final String
private Class
<?> private boolean
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractParamTypeBuilder
(String keyPattern, String namespaceURI, RulesBinder mainBinder, LinkedRuleBuilder mainBuilder, String methodName, ClassLoader classLoader) -
Method Summary
Modifier and TypeMethodDescriptionfinal AbstractParamTypeBuilder
<R> fireOnBegin
(boolean fireOnBegin) Marks the rule be invoked whenbegin
orend
events match.(package private) final String
(package private) final Class
<?> (package private) final boolean
(package private) final boolean
final AbstractParamTypeBuilder
<R> useExactMatch
(boolean useExactMatch) Sets exact matching being used.final AbstractParamTypeBuilder
<R> withParameterType
(Class<?> paramType) Sets the Java class of the method's argument.final AbstractParamTypeBuilder
<R> withParameterType
(String paramType) Sets the Java class name of the method's argument.Methods inherited from class org.apache.commons.digester3.binder.AbstractBackToLinkedRuleBuilder
createRule, get, getNamespaceURI, getPattern, reportError, then
-
Field Details
-
methodName
-
classLoader
-
useExactMatch
private boolean useExactMatch -
paramType
-
fireOnBegin
private boolean fireOnBegin
-
-
Constructor Details
-
AbstractParamTypeBuilder
AbstractParamTypeBuilder(String keyPattern, String namespaceURI, RulesBinder mainBinder, LinkedRuleBuilder mainBuilder, String methodName, ClassLoader classLoader)
-
-
Method Details
-
withParameterType
Sets the Java class of the method's argument. If you wish to use a primitive type, specify the corresonding Java wrapper class instead, such asjava.lang.Boolean
for aboolean
parameter.- Parameters:
paramType
- The Java class of the method's argument- Returns:
- this builder instance
-
withParameterType
Sets the Java class name of the method's argument. If you wish to use a primitive type, specify the corresonding Java wrapper class instead, such asjava.lang.Boolean
for aboolean
parameter.- Parameters:
paramType
- The Java class name of the method's argument- Returns:
- this builder instance
-
useExactMatch
Sets exact matching being used.- Parameters:
useExactMatch
- The exact matching being used- Returns:
- this builder instance
-
fireOnBegin
Marks the rule be invoked whenbegin
orend
events match.- Parameters:
fireOnBegin
- true, to invoke the rule atbegin
, false forend
- Returns:
- this builder instance
-
getMethodName
-
getParamType
-
isUseExactMatch
final boolean isUseExactMatch() -
isFireOnBegin
final boolean isFireOnBegin()
-