Annotation Interface BooleanString


@Retention(RUNTIME) @Inherited @Target({FIELD,METHOD,ANNOTATION_TYPE}) public @interface BooleanString
Indicates that parsed values such as "y", "No" or "null" should be interpreted as boolean values. If a parsed value exists in trueStrings(), then the field will receive true. If a parsed value exists in falseStrings() then the field will receive false.

A BooleanConversion will be assigned to this field

Commonly used for java beans processed using BeanProcessor and/or BeanWriterProcessor

See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    A set of Strings that represent the boolean value false (e.g.
    A set of Strings that represent the boolean value true (e.g.
  • Element Details

    • trueStrings

      String[] trueStrings
      A set of Strings that represent the boolean value true (e.g. "y", "yes", "1")
      Returns:
      Strings that represent true
    • falseStrings

      String[] falseStrings
      A set of Strings that represent the boolean value false (e.g. "n", "no", "0")
      Returns:
      Strings that represent false