public final class TraitTargetValidator extends AbstractValidator
A shape must be present in the return value of a selector in order for the shape to be considered compatible with the selector.
This validator emits ERROR events when a trait is applied to a shape that is not compatible with the trait selector.
MODEL_ERROR| Constructor and Description |
|---|
TraitTargetValidator() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ValidationEvent> |
validate(Model model)
Validates a model and returns a list of validation events.
|
createEvent, createEvent, danger, danger, error, error, getName, note, note, warning, warningpublic java.util.List<ValidationEvent> validate(Model model)
Validatormodel - Model to validate.