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 invokingLinkedRuleBuilder.setBeanProperty().
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringattributeprivate java.lang.StringpropertyName
-
Constructor Summary
Constructors Constructor Description BeanPropertySetterBuilder(java.lang.String keyPattern, java.lang.String namespaceURI, RulesBinder mainBinder, LinkedRuleBuilder mainBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BeanPropertySetterRulecreateRule()Provides an instance ofRule.BeanPropertySetterBuilderextractPropertyNameFromAttribute(java.lang.String attribute)Sets the attribute name from which the property name has to be extracted.BeanPropertySetterBuilderwithName(java.lang.String propertyName)Sets the name of property to set.-
Methods inherited from class org.apache.commons.digester3.binder.AbstractBackToLinkedRuleBuilder
get, getNamespaceURI, getPattern, reportError, then
-
-
-
-
Constructor Detail
-
BeanPropertySetterBuilder
BeanPropertySetterBuilder(java.lang.String keyPattern, java.lang.String namespaceURI, RulesBinder mainBinder, LinkedRuleBuilder mainBuilder)
-
-
Method Detail
-
withName
public BeanPropertySetterBuilder withName(java.lang.String propertyName)
Sets the name of property to set.- Parameters:
propertyName- The name of property to set- Returns:
- this builder instance
-
extractPropertyNameFromAttribute
public BeanPropertySetterBuilder extractPropertyNameFromAttribute(java.lang.String attribute)
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
protected BeanPropertySetterRule createRule()
Provides an instance ofRule. Must never return null.- Specified by:
createRulein classAbstractBackToLinkedRuleBuilder<BeanPropertySetterRule>- Returns:
- an instance of
Rule. - See Also:
AbstractBackToLinkedRuleBuilder.get()
-
-