public class ModelValidationResultsImpl extends Object implements ValidationResults
Modifier and Type | Field and Description |
---|---|
protected Map<ModelElementInstance,List<ValidationResult>> |
collectedResults |
protected int |
errorCount |
protected int |
warningCount |
Constructor and Description |
---|
ModelValidationResultsImpl(Map<ModelElementInstance,List<ValidationResult>> collectedResults,
int errorCount,
int warningCount) |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCount() |
Map<ModelElementInstance,List<ValidationResult>> |
getResults() |
int |
getWarinigCount() |
boolean |
hasErrors() |
void |
write(StringWriter writer,
ValidationResultFormatter formatter)
Utility method to print out a summary of the validation results.
|
protected Map<ModelElementInstance,List<ValidationResult>> collectedResults
protected int errorCount
protected int warningCount
public ModelValidationResultsImpl(Map<ModelElementInstance,List<ValidationResult>> collectedResults, int errorCount, int warningCount)
public boolean hasErrors()
hasErrors
in interface ValidationResults
ValidationResult
of type ValidationResultType.ERROR
public int getErrorCount()
getErrorCount
in interface ValidationResults
ValidationResult
of type ValidationResultType.ERROR
public int getWarinigCount()
getWarinigCount
in interface ValidationResults
ValidationResult
of type ValidationResultType.WARNING
public void write(StringWriter writer, ValidationResultFormatter formatter)
ValidationResults
write
in interface ValidationResults
writer
- a StringWriter
to which the result should be printedformatter
- formatter for printing elements and validation resultspublic Map<ModelElementInstance,List<ValidationResult>> getResults()
getResults
in interface ValidationResults
Copyright © 2022. All rights reserved.