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>>collectedResultsprotected ModelElementInstancecurrentElementprotected interrorCountprotected intwarningCount
-
Constructor Summary
Constructors Constructor Description ValidationResultsCollectorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddError(int code, java.lang.String message)Adds an errorvoidaddWarning(int code, java.lang.String message)Adds a wariningValidationResultsgetResults()protected java.util.List<ValidationResult>resultsForCurrentElement()voidsetCurrentElement(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:ValidationResultCollectorAdds an error- Specified by:
addErrorin 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:ValidationResultCollectorAdds a warining- Specified by:
addWarningin 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()
-
-