com.univocity.parsers.annotations
Annotation Type NullString


@Retention(value=RUNTIME)
@Inherited
@Target(value={FIELD,METHOD})
public @interface NullString

Indicates that parsed values such as "", "?" or "null" should be interpreted as null. If a parsed value exists in 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

Required Element Summary
 String[] nulls
          A set of Strings that represent a null value instead of a valid String (e.g.
 

Element Detail

nulls

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

Returns:
Strings that represent null


Copyright © 2015 uniVocity Software Pty Ltd. All rights reserved.