org.camunda.bpm.model.xml.validation
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
hasErrors
boolean hasErrors()
- Returns:
- true if there are
ValidationResult of type ValidationResultType.ERROR
getErrorCount
int getErrorCount()
- Returns:
- the count of
ValidationResult of type ValidationResultType.ERROR
getWarinigCount
int getWarinigCount()
- Returns:
- the count of
ValidationResult of type ValidationResultType.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 - a StringWriter to which the result should be printedprinter - formatter for printing elements and validation results
Copyright © 2016 camunda services GmbH. All rights reserved.