Interface ValidationSupporting<T>
- Type Parameters:
T
- Value type, same as inValueEngineer
public interface ValidationSupporting<T>
Aspect for
ValueEngineer
s supporting value
validation
.- Since:
- 4.2.416
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Instances emit anInvalidValueException
whenValidationSupporting.Emitter.signalInvalidValue(String)
is called. -
Field Summary
Modifier and TypeFieldDescriptionstatic final ValueEngineerAspectType<ValidationSupporting<?>>
Aspect forValueEngineer
s supporting valuevalidation
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate
(T value, ValidationSupporting.Emitter emitter) Call back forvalue
validation.
-
Field Details
-
TYPE
Aspect forValueEngineer
s supporting valuevalidation
.- Since:
- 4.2.416
-
-
Method Details
-
validate
Call back forvalue
validation. Use the provided emitter tosignal an invalid value
.- Parameters:
value
- Value to validate.emitter
- Useemitter.signalInvalidValue("message")
to signal an invalid value.- Throws:
InvalidValueException
- Thrown to signal invalid values.- Since:
- 4.2.416
-