Class BeanPropertySetterBuilder
java.lang.Object
org.apache.commons.digester3.binder.AbstractBackToLinkedRuleBuilder<BeanPropertySetterRule>
org.apache.commons.digester3.binder.BeanPropertySetterBuilder
- All Implemented Interfaces:
RuleProvider<BeanPropertySetterRule>
public final class BeanPropertySetterBuilder
extends AbstractBackToLinkedRuleBuilder<BeanPropertySetterRule>
Builder chained when invoking
LinkedRuleBuilder.setBeanProperty()
.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBeanPropertySetterBuilder
(String keyPattern, String namespaceURI, RulesBinder mainBinder, LinkedRuleBuilder mainBuilder) -
Method Summary
Modifier and TypeMethodDescriptionprotected BeanPropertySetterRule
Provides an instance ofRule
.extractPropertyNameFromAttribute
(String attribute) Sets the attribute name from which the property name has to be extracted.Sets the name of property to set.Methods inherited from class org.apache.commons.digester3.binder.AbstractBackToLinkedRuleBuilder
get, getNamespaceURI, getPattern, reportError, then
-
Field Details
-
propertyName
-
attribute
-
-
Constructor Details
-
BeanPropertySetterBuilder
BeanPropertySetterBuilder(String keyPattern, String namespaceURI, RulesBinder mainBinder, LinkedRuleBuilder mainBuilder)
-
-
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
Provides an instance ofRule
. Must never return null.- Specified by:
createRule
in classAbstractBackToLinkedRuleBuilder<BeanPropertySetterRule>
- Returns:
- an instance of
Rule
. - See Also:
-