Annotation Type Validable

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String value  
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String[] parameters
      This "list" will represent the parameter the caller will send to the validation.
      • parameters

        String[] parameters
        This "list" will represent the parameter the caller will send to the validation. Assuming you have this validation: @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:
        • .: represents the decorated option (aka "this")
        • ../foo: represents the
           foo
           
          option of the parent (if exists) of "."
        • bar: represents the
           bar
           
          sibling option of the decorated field
        • bar/dummy: represents the
           dummy
           
          option of the child bar of the decorated field
        This syntax is close to path syntax but the important point is all the parameters are related to the decorated option.
        Returns:
        parameters for the validation.
        Default:
        {"."}