T
- Value type, same as in ValueEngineer
public interface ValidationSupporting<T>
ValueEngineer
s supporting value
validation
.Modifier and Type | Interface and Description |
---|---|
static interface |
ValidationSupporting.Emitter
Instances emit an
InvalidValueException when
ValidationSupporting.Emitter.signalInvalidValue(String) is called. |
Modifier and Type | Field and Description |
---|---|
static ValueEngineerAspectType<ValidationSupporting<?>> |
TYPE
Aspect for
ValueEngineer s supporting value
validation . |
Modifier and Type | Method and Description |
---|---|
void |
validate(T value,
ValidationSupporting.Emitter emitter)
Call back for
value validation. |
static final ValueEngineerAspectType<ValidationSupporting<?>> TYPE
ValueEngineer
s supporting value
validation
.void validate(T value, ValidationSupporting.Emitter emitter) throws InvalidValueException
value
validation. Use the provided emitter to
signal an invalid value
.value
- Value to validate.emitter
- Use
emitter.signalInvalidValue("message")
to signal an invalid value.InvalidValueException
- Thrown to signal invalid values.Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500