Class SetPropertiesRuleProvider
java.lang.Object
org.apache.commons.digester.annotations.providers.SetPropertiesRuleProvider
- All Implemented Interfaces:
AnnotationRuleProvider<SetProperty,
Field, SetPropertiesRule>
public final class SetPropertiesRuleProvider
extends Object
implements AnnotationRuleProvider<SetProperty,Field,SetPropertiesRule>
Provides instances of
SetPropertiesRule
.- Since:
- 2.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAlias
(SetProperty annotation, Field element) Adds a new alias attribute/property name; if the attribute name is not specified, the alias will be considered as property name identity.get()
Provides an instance ofRule
.void
init
(SetProperty annotation, Field element) Initializes the provider.
-
Field Details
-
aliases
The data structure that stores the aliases.
-
-
Constructor Details
-
SetPropertiesRuleProvider
public SetPropertiesRuleProvider()
-
-
Method Details
-
init
Initializes the provider.- Specified by:
init
in interfaceAnnotationRuleProvider<SetProperty,
Field, SetPropertiesRule> - Parameters:
annotation
- the annotation instance.element
- the annotated element reference.
-
addAlias
Adds a new alias attribute/property name; if the attribute name is not specified, the alias will be considered as property name identity.- Parameters:
annotation
- theSetProperty
reference.element
- the annotated element reference.
-
get
Provides an instance ofRule
. Must never return null.- Specified by:
get
in interfaceAnnotationRuleProvider<SetProperty,
Field, SetPropertiesRule> - Returns:
- an instance of
Rule
.
-