Class BeanPropertySetterBuilder
- java.lang.Object
-
- org.apache.commons.digester3.binder.BeanPropertySetterBuilder
-
- All Implemented Interfaces:
RuleProvider<BeanPropertySetterRule>
public final class BeanPropertySetterBuilder extends java.lang.Object
Builder chained when invokingLinkedRuleBuilder.setBeanProperty().
-
-
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.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.protected voidreportError(java.lang.String methodChain, java.lang.String message)LinkedRuleBuilderthen()Come back to the mainLinkedRuleBuilder.BeanPropertySetterBuilderwithName(java.lang.String propertyName)Sets the name of property to set.
-
-
-
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.- 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
-
-