|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MatchingStrategy
Strategy to determine if an attribute matches and should be replaced with a certain value.
An attribute can be matched by name or type.
A MatchingStrategy should implement hashCode so that matching strategies for the same object/type can be
detected and the last one added can be used.
ValueCreationStrategy| Method Summary | |
|---|---|
boolean |
matchesByField(Field field)
Test if a field matches this strategy. |
boolean |
matchesByMethod(Method method)
Test if a method matches this strategy. |
boolean |
matchesByType(Class<?> clazz)
Test if a type matches this strategy. |
| Method Detail |
|---|
boolean matchesByField(@Nonnull
Field field)
field - A field
ValueCreationStrategy should be applied
boolean matchesByMethod(@Nonnull
Method method)
method - A method
ValueCreationStrategy should be applied
boolean matchesByType(@Nonnull
Class<?> clazz)
clazz - a clazz type
ValueCreationStrategy should be applied
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||