Interface ValidationResults
- All Known Implementing Classes:
ModelValidationResultsImpl
public interface ValidationResults
Object in which the results of a model validation are collected.
See:
ModelInstance.validate(java.util.Collection)
.- Since:
- 7.6
- Author:
- Daniel Meyer
-
Method Summary
Modifier and TypeMethodDescriptionint
int
boolean
void
write
(StringWriter writer, ValidationResultFormatter printer) Utility method to print out a summary of the validation results.
-
Method Details
-
hasErrors
boolean hasErrors()- Returns:
- true if there are
ValidationResult
of typeValidationResultType.ERROR
-
getErrorCount
int getErrorCount()- Returns:
- the count of
ValidationResult
of typeValidationResultType.ERROR
-
getWarinigCount
int getWarinigCount()- Returns:
- the count of
ValidationResult
of typeValidationResultType.WARNING
-
getResults
Map<ModelElementInstance,List<ValidationResult>> getResults()- Returns:
- the individual results of the validation grouped by element.
-
write
Utility method to print out a summary of the validation results.- Parameters:
writer
- aStringWriter
to which the result should be printedprinter
- formatter for printing elements and validation results
-