Top Description Methods
com.univocity.parsers.annotations

public @Interface BooleanString

extends Annotation
Annotations
@Retention:RUNTIME
@Inherited
@Target:FIELD, METHOD, ANNOTATION_TYPE
Imports
com.univocity.parsers.common.processor.*, com.univocity.parsers.conversions.*, java.lang.annotation.*

Indicates that parsed values such as "y", "No" or "null" should be interpreted as boolean values. If a parsed value exists in BooleanString#trueStrings(), then the field will receive true. If a parsed value exists in BooleanString#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

Author
Univocity Software Pty Ltd - [email protected]
See Also
Conversion, Conversions, BeanProcessor, BeanWriterProcessor

Method Summary

Modifier and TypeMethod and Description
public String[]

Returns:

Strings that represent false
falseStrings
()

A set of Strings that represent the boolean value false (e.g. "n", "no", "0")

public String[]

Returns:

Strings that represent true
trueStrings
()

A set of Strings that represent the boolean value true (e.g. "y", "yes", "1")

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

falseStringsback to summary
public String[] falseStrings()

A set of Strings that represent the boolean value false (e.g. "n", "no", "0")

Returns:String[]

Strings that represent false

trueStringsback to summary
public String[] trueStrings()

A set of Strings that represent the boolean value true (e.g. "y", "yes", "1")

Returns:String[]

Strings that represent true