Class SetPropertyBuilder
- java.lang.Object
-
- org.apache.commons.digester3.binder.AbstractBackToLinkedRuleBuilder<SetPropertyRule>
-
- org.apache.commons.digester3.binder.SetPropertyBuilder
-
- All Implemented Interfaces:
RuleProvider<SetPropertyRule>
public final class SetPropertyBuilder extends AbstractBackToLinkedRuleBuilder<SetPropertyRule>
Builder chained when invokingLinkedRuleBuilder.setProperty(String)
.- Since:
- 3.0
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
attributePropertyName
private java.lang.String
valueAttributeName
-
Constructor Summary
Constructors Constructor Description SetPropertyBuilder(java.lang.String keyPattern, java.lang.String namespaceURI, RulesBinder mainBinder, LinkedRuleBuilder mainBuilder, java.lang.String attributePropertyName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SetPropertyRule
createRule()
Provides an instance ofRule
.SetPropertyBuilder
extractingValueFromAttribute(java.lang.String valueAttributeName)
Set the name of the attribute that will contain the value to which the property should be set.-
Methods inherited from class org.apache.commons.digester3.binder.AbstractBackToLinkedRuleBuilder
get, getNamespaceURI, getPattern, reportError, then
-
-
-
-
Constructor Detail
-
SetPropertyBuilder
SetPropertyBuilder(java.lang.String keyPattern, java.lang.String namespaceURI, RulesBinder mainBinder, LinkedRuleBuilder mainBuilder, java.lang.String attributePropertyName)
-
-
Method Detail
-
extractingValueFromAttribute
public SetPropertyBuilder extractingValueFromAttribute(java.lang.String valueAttributeName)
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
protected SetPropertyRule createRule()
Provides an instance ofRule
. Must never return null.- Specified by:
createRule
in classAbstractBackToLinkedRuleBuilder<SetPropertyRule>
- Returns:
- an instance of
Rule
. - See Also:
AbstractBackToLinkedRuleBuilder.get()
-
-