Modifier and Type | Required Element and Description |
---|---|
String |
value |
Modifier and Type | Optional Element and Description |
---|---|
String[] |
parameters
This "list" will represent the parameter the caller will send to the validation.
|
public abstract String value
AsyncValidation
value method.public abstract String[] parameters
@AsyncValidation("xxx") ValidationResult doValidate(@Option("value") String value, @Option("other") String other)
And this model:
public class MyModel { @Validable(value = "xxx", parameters = {".", "foo"}) @Option String
something; @Option String
foo; }
This must call doValidate(something, foo).
Syntax is the following:
foooption of the parent (if exists) of "."
barsibling option of the decorated field
dummyoption of the child bar of the decorated field
1.1.27-SNAPSHOT - Copyright © 2019 Talend Component Kit Documentation