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 SummaryFields Modifier and Type Field Description protected java.util.Map<ModelElementInstance,java.util.List<ValidationResult>>collectedResultsprotected ModelElementInstancecurrentElementprotected interrorCountprotected intwarningCount
 - 
Constructor SummaryConstructors Constructor Description ValidationResultsCollectorImpl()
 - 
Method SummaryAll 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- 
currentElementprotected ModelElementInstance currentElement 
 - 
collectedResultsprotected java.util.Map<ModelElementInstance,java.util.List<ValidationResult>> collectedResults 
 - 
errorCountprotected int errorCount 
 - 
warningCountprotected int warningCount 
 
- 
 - 
Method Detail- 
addErrorpublic void addError(int code, java.lang.String message)Description copied from interface:ValidationResultCollectorAdds an error- Specified by:
- addErrorin interface- ValidationResultCollector
- Parameters:
- code- a reference code for the error
- message- a human consumable error message
 
 - 
addWarningpublic void addWarning(int code, java.lang.String message)Description copied from interface:ValidationResultCollectorAdds a warining- Specified by:
- addWarningin interface- ValidationResultCollector
- Parameters:
- code- a reference code for the error
- message- a human consumable error message
 
 - 
setCurrentElementpublic void setCurrentElement(ModelElementInstance currentElement) 
 - 
getResultspublic ValidationResults getResults() 
 - 
resultsForCurrentElementprotected java.util.List<ValidationResult> resultsForCurrentElement() 
 
- 
 
-