Class SetPropertiesRuleProvider
- java.lang.Object
-
- org.apache.commons.digester.annotations.providers.SetPropertiesRuleProvider
-
- All Implemented Interfaces:
AnnotationRuleProvider<SetProperty,java.lang.reflect.Field,SetPropertiesRule>
public final class SetPropertiesRuleProvider extends java.lang.Object implements AnnotationRuleProvider<SetProperty,java.lang.reflect.Field,SetPropertiesRule>
Provides instances ofSetPropertiesRule
.- Since:
- 2.1
-
-
Constructor Summary
Constructors Constructor Description SetPropertiesRuleProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAlias(SetProperty annotation, java.lang.reflect.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.SetPropertiesRule
get()
Provides an instance ofRule
.void
init(SetProperty annotation, java.lang.reflect.Field element)
Initializes the provider.
-
-
-
Constructor Detail
-
SetPropertiesRuleProvider
public SetPropertiesRuleProvider()
-
-
Method Detail
-
init
public void init(SetProperty annotation, java.lang.reflect.Field element)
Initializes the provider.- Specified by:
init
in interfaceAnnotationRuleProvider<SetProperty,java.lang.reflect.Field,SetPropertiesRule>
- Parameters:
annotation
- the annotation instance.element
- the annotated element reference.
-
addAlias
public void addAlias(SetProperty annotation, java.lang.reflect.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.- Parameters:
annotation
- theSetProperty
reference.element
- the annotated element reference.
-
get
public SetPropertiesRule get()
Provides an instance ofRule
. Must never return null.- Specified by:
get
in interfaceAnnotationRuleProvider<SetProperty,java.lang.reflect.Field,SetPropertiesRule>
- Returns:
- an instance of
Rule
.
-
-