public interface ValidationEventDecorator
| Modifier and Type | Field and Description |
|---|---|
static ValidationEventDecorator |
IDENTITY
A decorator that does nothing.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDecorate(ValidationEvent ev)
Returns true if this decorator knows how to decorate this event, usually by looking at the event id.
|
static ValidationEventDecorator |
compose(java.util.List<ValidationEventDecorator> decorators)
Creates a decorator composed of one or more decorators.
|
ValidationEvent |
decorate(ValidationEvent ev)
Takes an event and potentially updates it to decorate it.
|
static final ValidationEventDecorator IDENTITY
boolean canDecorate(ValidationEvent ev)
ev - The event to test againstValidationEvent decorate(ValidationEvent ev)
static ValidationEventDecorator compose(java.util.List<ValidationEventDecorator> decorators)
decorators - Decorators to compose.