Annotation Interface NotNull
Validates that a field is not null.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanWhether validation failure should fail fast (prevent plugin enable).The error message.An optional suggestion shown after the error message describing how to fix it.
-
Element Details
-
message
String messageThe error message.- Returns:
- the message
- Default:
- "Value cannot be null"
-
failFast
boolean failFastWhether validation failure should fail fast (prevent plugin enable).- Returns:
- true to fail fast
- Default:
- true
-
suggestion
String suggestionAn optional suggestion shown after the error message describing how to fix it. Empty by default (no suggestion).- Returns:
- the suggestion, or empty for none
- Default:
- ""
-