Package io.debezium.config
Interface Field.Recommender
-
- All Known Implementing Classes:
Field.EnumRecommender,Field.InvisibleRecommender,Field.OneOfRecommender
- Enclosing class:
- Field
public static interface Field.RecommenderA component that is able to provide recommended values for a field given a configuration. In case that there aredependenciesbetween fields, the valid values and visibility for a field may change given the values of other fields.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Object>validValues(Field field, Configuration config)Return a set of recommended (and valid) values for the field given the current configuration values.booleanvisible(Field field, Configuration config)Set the visibility of the field given the current configuration values.
-
-
-
Method Detail
-
validValues
List<Object> validValues(Field field, Configuration config)
Return a set of recommended (and valid) values for the field given the current configuration values.- Parameters:
field- the field for which the recommended values are to be found; may not be nullconfig- the configuration; may not be null- Returns:
- the list of valid values
-
visible
boolean visible(Field field, Configuration config)
Set the visibility of the field given the current configuration values.- Parameters:
field- the field; may not be nullconfig- the configuration; may not be null- Returns:
trueif the field is to be visible, orfalseotherwise
-
-