Class ObjectParamBuilder<T>
- java.lang.Object
-
- org.apache.commons.digester3.binder.ObjectParamBuilder<T>
-
- Type Parameters:
T- The object type represented by this builder
- All Implemented Interfaces:
RuleProvider<ObjectParamRule>
public final class ObjectParamBuilder<T> extends java.lang.Object
Builder chained when invokingLinkedRuleBuilder.objectParam(Object).- Since:
- 3.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectParamRulecreateRule()Provides an instance ofRule.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.ObjectParamBuilder<T>matchingAttribute(java.lang.String attributeName)The attribute which we are attempting to match.ObjectParamBuilder<T>ofIndex(int paramIndex)The zero-relative index of the parameter we are saving.protected voidreportError(java.lang.String methodChain, java.lang.String message)LinkedRuleBuilderthen()Come back to the mainLinkedRuleBuilder.
-
-
-
Method Detail
-
ofIndex
public ObjectParamBuilder<T> ofIndex(int paramIndex)
The zero-relative index of the parameter we are saving.- Parameters:
paramIndex- The zero-relative index of the parameter we are saving- Returns:
- this builder instance
-
matchingAttribute
public ObjectParamBuilder<T> matchingAttribute(java.lang.String attributeName)
The attribute which we are attempting to match.- Parameters:
attributeName- The attribute which we are attempting to match- Returns:
- this builder instance
-
createRule
protected ObjectParamRule 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
-
-