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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getErrorCount()
Map<ModelElementInstance,List<ValidationResult>>
getResults()
int
getWarinigCount()
boolean
hasErrors()
void
write(StringWriter writer, ValidationResultFormatter printer)
Utility method to print out a summary of the validation results.
-
-
-
Method Detail
-
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
void write(StringWriter writer, ValidationResultFormatter printer)
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
-
-