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>>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, String message)Adds an errorvoidaddWarning(int code, String message)Adds a wariningValidationResultsgetResults()protected List<ValidationResult>resultsForCurrentElement()voidsetCurrentElement(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: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, 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 List<ValidationResult> resultsForCurrentElement()
 
 - 
 
 -