Class SetPropertiesBuilder
java.lang.Object
org.apache.commons.digester3.binder.SetPropertiesBuilder
- All Implemented Interfaces:
RuleProvider<SetPropertiesRule>
Builder chained when invoking
LinkedRuleBuilder.setProperties().-
Method Summary
Modifier and TypeMethodDescriptionAdd an additional attribute name to property name mapping.Deprecated.protected SetPropertiesRuleProvides an instance ofRule.final SetPropertiesRuleget()Provides an instance ofRule.final StringReturns the namespace URI for which this Rule is relevant, if any.final StringReturns the rule pattern associated to this builder.ignoreAttribute(String attributeName) Add an attribute name to the ignore list.ignoreMissingProperty(boolean ignoreMissingProperty) Sets whether attributes found in the XML without matching properties should be ignored.protected final voidreportError(String methodChain, String message) final LinkedRuleBuilderthen()Come back to the mainLinkedRuleBuilder.
-
Method Details
-
addAlias
Deprecated.Add an additional attribute name to property name mapping.- Parameters:
attributeName- The attribute to matchpropertyName- The java bean property to be assigned the value- Returns:
- this builder instance
-
addAlias
Add an additional attribute name to property name mapping.- Parameters:
attributeName- The attribute to match- Returns:
- the property alias builder
- Since:
- 3.2
-
ignoreAttribute
Add an attribute name to the ignore list.- Parameters:
attributeName- The attribute to match has to be ignored- Returns:
- this builder instance
-
ignoreMissingProperty
Sets whether attributes found in the XML without matching properties should be ignored. If set to false, the parsing will throw anNoSuchMethodExceptionif an unmatched attribute is found. This allows to trap misspellings in the XML file.- Parameters:
ignoreMissingProperty- false to stop the parsing on unmatched attributes- Returns:
- this builder instance
-
createRule
-
then
Come back to the mainLinkedRuleBuilder.- Returns:
- the main
LinkedRuleBuilder
-
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
Provides an instance ofRule. Must never return null.- Specified by:
getin interfaceRuleProvider<R extends Rule>- Returns:
- an instance of
Rule.
-
reportError
-
getPattern
Returns the rule pattern associated to this builder.- Returns:
- The rule pattern associated to this builder
-