public final class SetPropertiesRuleProvider extends java.lang.Object implements AnnotationRuleProvider<SetProperty,java.lang.reflect.Field,SetPropertiesRule>
SetPropertiesRule.| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,java.lang.String> |
aliases
The data structure that stores the aliases.
|
| Constructor and Description |
|---|
SetPropertiesRuleProvider() |
| Modifier and Type | Method and 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 of
Rule. |
void |
init(SetProperty annotation,
java.lang.reflect.Field element)
Initializes the provider.
|
private final java.util.Map<java.lang.String,java.lang.String> aliases
public void init(SetProperty annotation, java.lang.reflect.Field element)
init in interface AnnotationRuleProvider<SetProperty,java.lang.reflect.Field,SetPropertiesRule>annotation - the annotation instance.element - the annotated element reference.public void addAlias(SetProperty annotation, java.lang.reflect.Field element)
annotation - the SetProperty reference.element - the annotated element reference.public SetPropertiesRule get()
Rule.
Must never return null.get in interface AnnotationRuleProvider<SetProperty,java.lang.reflect.Field,SetPropertiesRule>Rule.