Class ImmutableValidationReport
java.lang.Object
com.atlassian.oai.validator.report.ImmutableValidationReport
- All Implemented Interfaces:
ValidationReport
A
ValidationReport containing a single ValidationReport.Message.
This ImmutableValidationReport is immutable.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.oai.validator.report.ValidationReport
ValidationReport.Level, ValidationReport.Message, ValidationReport.MessageContext -
Method Summary
Modifier and TypeMethodDescriptionGet the validation messages on this report.toString()Apply the given additional message context to each message in this validation report, returning a new unmodifiable report.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.oai.validator.report.ValidationReport
hasErrors, merge, sortedValidationLevels
-
Method Details
-
getMessages
Description copied from interface:ValidationReportGet the validation messages on this report.- Specified by:
getMessagesin interfaceValidationReport- Returns:
- The messages recorded on this report
-
toString
-
withAdditionalContext
Description copied from interface:ValidationReportApply the given additional message context to each message in this validation report, returning a new unmodifiable report.- Specified by:
withAdditionalContextin interfaceValidationReport- Parameters:
context- The additional context to apply to each message in the report- Returns:
- A new, unmodifiable validation report containing all of the messages from this report, enhanced with the additional supplied context
-