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