Interface ValidationReport.Message
- Enclosing interface:
- ValidationReport
public static interface ValidationReport.Message
A single message in the validation report
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns contextual information about this message, if it is available.getKey()getLevel()default List<ValidationReport.Message>Returns a new instance, the same as this message, but additional context attached.withAdditionalInfo(String info) Returns a new instance, the same as this message, but with additional info attached.withLevel(ValidationReport.Level level) Returns a new instance, the same as this message, but, with level changed.default ValidationReport.MessagewithNestedMessages(Collection<ValidationReport.Message> messages) Returns a new instance, the same as this message, but with nested messages attached.
-
Method Details
-
create
-
getKey
String getKey() -
getMessage
String getMessage() -
getLevel
ValidationReport.Level getLevel() -
getAdditionalInfo
-
getNestedMessages
-
getContext
Optional<ValidationReport.MessageContext> getContext()Returns contextual information about this message, if it is available. -
withLevel
Returns a new instance, the same as this message, but, with level changed. -
withAdditionalInfo
Returns a new instance, the same as this message, but with additional info attached. -
withNestedMessages
Returns a new instance, the same as this message, but with nested messages attached. -
withAdditionalContext
Returns a new instance, the same as this message, but additional context attached.
-