T
- the type of the elements to validate.public interface ModelElementValidator<T extends ModelElementInstance>
ModelInstance.validate(java.util.Collection)
Modifier and Type | Method and Description |
---|---|
Class<T> |
getElementType()
The type of the element this validator is applied to.
|
void |
validate(T element,
ValidationResultCollector validationResultCollector)
Validate an element.
|
Class<T> getElementType()
The type of the element this validator is applied to. The validator is applied to all instances implementing this type.
Example from BPMN: Assume the type returned is 'Task'. Then the validator is invoked for all instances of task, including instances of 'ServiceTask', 'UserTask', ...
void validate(T element, ValidationResultCollector validationResultCollector)
element
- the element to validatevalidationResultCollector
- object used to collect validation results for this element.Copyright © 2020. All rights reserved.