Class ValidationResultsCollectorImpl
- java.lang.Object
-
- org.camunda.bpm.model.xml.impl.validation.ValidationResultsCollectorImpl
-
- All Implemented Interfaces:
ValidationResultCollector
public class ValidationResultsCollectorImpl extends Object implements ValidationResultCollector
- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<ModelElementInstance,List<ValidationResult>>
collectedResults
protected ModelElementInstance
currentElement
protected int
errorCount
protected int
warningCount
-
Constructor Summary
Constructors Constructor Description ValidationResultsCollectorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addError(int code, String message)
Adds an errorvoid
addWarning(int code, String message)
Adds a wariningValidationResults
getResults()
protected List<ValidationResult>
resultsForCurrentElement()
void
setCurrentElement(ModelElementInstance currentElement)
-
-
-
Field Detail
-
currentElement
protected ModelElementInstance currentElement
-
collectedResults
protected Map<ModelElementInstance,List<ValidationResult>> collectedResults
-
errorCount
protected int errorCount
-
warningCount
protected int warningCount
-
-
Method Detail
-
addError
public void addError(int code, String message)
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
public void addWarning(int code, String message)
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
public void setCurrentElement(ModelElementInstance currentElement)
-
getResults
public ValidationResults getResults()
-
resultsForCurrentElement
protected List<ValidationResult> resultsForCurrentElement()
-
-