Class SetPropertyBuilder
java.lang.Object
org.apache.commons.digester3.binder.SetPropertyBuilder
- All Implemented Interfaces:
RuleProvider<SetPropertyRule>
Builder chained when invoking
LinkedRuleBuilder.setProperty(String).- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionprotected SetPropertyRuleProvides an instance ofRule.extractingValueFromAttribute(String valueAttributeName) Set the name of the attribute that will contain the value to which the property should be set.final SetPropertyRuleget()Provides an instance ofRule.final StringReturns the namespace URI for which this Rule is relevant, if any.final StringReturns the rule pattern associated to this builder.protected final voidreportError(String methodChain, String message) final LinkedRuleBuilderthen()Come back to the mainLinkedRuleBuilder.
-
Method Details
-
extractingValueFromAttribute
Set the name of the attribute that will contain the value to which the property should be set.- Parameters:
valueAttributeName- Name of the attribute that will contain the value to which the property should be set.- Returns:
- this builder instance
-
createRule
-
then
Come back to the mainLinkedRuleBuilder.- Returns:
- the main
LinkedRuleBuilder
-
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
Provides an instance ofRule. Must never return null.- Specified by:
getin interfaceRuleProvider<R extends Rule>- Returns:
- an instance of
Rule.
-
reportError
-
getPattern
Returns the rule pattern associated to this builder.- Returns:
- The rule pattern associated to this builder
-