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
-
Element Details