Class BeanPropertySetterBuilder
java.lang.Object
org.apache.commons.digester3.binder.BeanPropertySetterBuilder
- All Implemented Interfaces:
RuleProvider<BeanPropertySetterRule>
Builder chained when invoking
LinkedRuleBuilder.setBeanProperty().-
Method Summary
Modifier and TypeMethodDescriptionprotected BeanPropertySetterRuleProvides an instance ofRule.extractPropertyNameFromAttribute(String attribute) Sets the attribute name from which the property name has to be extracted.final BeanPropertySetterRuleget()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.Sets the name of property to set.
-
Method Details
-
withName
Sets the name of property to set.- Parameters:
propertyName- The name of property to set- Returns:
- this builder instance
-
extractPropertyNameFromAttribute
Sets the attribute name from which the property name has to be extracted.- Parameters:
attribute- The attribute name from which extracting the name of property to 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
-