Class MergedValidationReport
java.lang.Object
com.atlassian.oai.validator.report.MergedValidationReport
- All Implemented Interfaces:
ValidationReport
A
ValidationReport serving as container for multiple ValidationReports.
This MergedValidationReport 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.booleanReturn if this validation report contains errors.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, toString, wait, wait, waitMethods inherited from interface com.atlassian.oai.validator.report.ValidationReport
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
-
hasErrors
public boolean hasErrors()Description copied from interface:ValidationReportReturn if this validation report contains errors.- Specified by:
hasErrorsin interfaceValidationReport- Returns:
trueif a validation error exists;falseotherwise.
-
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
-