Annotation Interface SpecStringInArray


@Retention(RUNTIME) @Target(FIELD) public @interface SpecStringInArray
Specifies that the value of a field must be a String that is contained in a certain array.
  • Required Element Summary

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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
     
  • Element Details

    • value

      String[] value
      Returns:
      the values that are allowed
    • ignoreCase

      boolean ignoreCase
      Returns:
      true to ignore the case, false to check the case. Default is false.
      Default:
      false