Class ValidationResultsCollectorImpl
java.lang.Object
org.camunda.bpm.model.xml.impl.validation.ValidationResultsCollectorImpl
- All Implemented Interfaces:
ValidationResultCollector
- Author:
- Daniel Meyer
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map<ModelElementInstance,
List<ValidationResult>> protected ModelElementInstance
protected int
protected int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an errorvoid
addWarning
(int code, String message) Adds a wariningprotected List<ValidationResult>
void
setCurrentElement
(ModelElementInstance currentElement)
-
Field Details
-
currentElement
-
collectedResults
-
errorCount
protected int errorCount -
warningCount
protected int warningCount
-
-
Constructor Details
-
ValidationResultsCollectorImpl
public ValidationResultsCollectorImpl()
-
-
Method Details
-
addError
Description copied from interface:ValidationResultCollector
Adds an error- Specified by:
addError
in interfaceValidationResultCollector
- Parameters:
code
- a reference code for the errormessage
- a human consumable error message
-
addWarning
Description copied from interface:ValidationResultCollector
Adds a warining- Specified by:
addWarning
in interfaceValidationResultCollector
- Parameters:
code
- a reference code for the errormessage
- a human consumable error message
-
setCurrentElement
-
getResults
-
resultsForCurrentElement
-