Interface KeyEditorField.KeyValidator
- Enclosing class:
KeyEditorField
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescription@Nullable Stringvalidate(@NonNull DocumentNode node, @NonNull String oldKey, @Nullable String newKey) Provides a way to prevent keys from being accepted.
-
Method Details
-
validate
@Nullable String validate(@NonNull DocumentNode node, @NonNull String oldKey, @Nullable String newKey) Provides a way to prevent keys from being accepted.- Parameters:
node- The node that is being editedoldKey- The previous keynewKey- The new key, or null if the user cancelled the interaction- Returns:
- A validation error message, or null if the value is acceptable
-