public final class EventPayloadTraitValidator extends AbstractValidator
Only a single member can be marked with the eventPayload trait, and
this is validated using ExclusiveStructureMemberTraitValidator
.
MODEL_ERROR
Constructor and Description |
---|
EventPayloadTraitValidator() |
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, warning
public java.util.List<ValidationEvent> validate(Model model)
Validator
model
- Model to validate.