Class SetPropertyBuilder
java.lang.Object
org.apache.commons.digester3.binder.AbstractBackToLinkedRuleBuilder<SetPropertyRule>
org.apache.commons.digester3.binder.SetPropertyBuilder
- All Implemented Interfaces:
RuleProvider<SetPropertyRule>
Builder chained when invoking
LinkedRuleBuilder.setProperty(String)
.- Since:
- 3.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSetPropertyBuilder
(String keyPattern, String namespaceURI, RulesBinder mainBinder, LinkedRuleBuilder mainBuilder, String attributePropertyName) -
Method Summary
Modifier and TypeMethodDescriptionprotected SetPropertyRule
Provides an instance ofRule
.extractingValueFromAttribute
(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
-
Field Details
-
attributePropertyName
-
valueAttributeName
-
-
Constructor Details
-
SetPropertyBuilder
SetPropertyBuilder(String keyPattern, String namespaceURI, RulesBinder mainBinder, LinkedRuleBuilder mainBuilder, String attributePropertyName)
-
-
Method Details
-
extractingValueFromAttribute
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
Provides an instance ofRule
. Must never return null.- Specified by:
createRule
in classAbstractBackToLinkedRuleBuilder<SetPropertyRule>
- Returns:
- an instance of
Rule
. - See Also:
-