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