AnnotationRuleProvider<SetProperty,java.lang.reflect.Field,SetPropertiesRule>public final class SetPropertiesRuleProvider extends java.lang.Object implements AnnotationRuleProvider<SetProperty,java.lang.reflect.Field,SetPropertiesRule>
SetPropertiesRule.| Constructor | Description |
|---|---|
SetPropertiesRuleProvider() |
| 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 of
Rule. |
void |
init(SetProperty annotation,
java.lang.reflect.Field element) |
Initializes the provider.
|
public SetPropertiesRuleProvider()
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.