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 TypeMethodDescriptionvoidaddAlias(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.voidinit(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:
initin 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- theSetPropertyreference.element- the annotated element reference.
-
get
Provides an instance ofRule. Must never return null.- Specified by:
getin interfaceAnnotationRuleProvider<SetProperty,Field, SetPropertiesRule> - Returns:
- an instance of
Rule.
-