Top Description Methods
com.univocity.parsers.annotations

public @Interface NullString

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 "", "?" or "null" should be interpreted as null. If a parsed value exists in NullString#nulls(), then the field must be set to null.

A NullStringConversion 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 null
nulls
()

A set of Strings that represent a null value instead of a valid String (e.g. "?", "empty", "null" )

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

nullsback to summary
public String[] nulls()

A set of Strings that represent a null value instead of a valid String (e.g. "?", "empty", "null" )

Returns:String[]

Strings that represent null