Top Description Methods
com.univocity.parsers.annotations

public @Interface Nested

extends Annotation
Annotations
@Retention:RUNTIME
@Inherited
@Target:FIELD, METHOD, ANNOTATION_TYPE
Imports
java.lang.annotation.*

Marks a field as a nested object to be constructed with the values of the current row. It is expected that the annotated attribute is of a type, or provides an explicit type via the type() option, that contains one or more Parsed annotations. The given type and its Parsed annotations will determine which fields from each row should be used to populate the Nested instance.
Author
Univocity Software Pty Ltd - [email protected]

Method Summary

Modifier and TypeMethod and Description
public String[]

Returns:

the initialization arguments passed into the constructore of the HeaderTransformer
args
()

An optional sequence of arguments for creating an instance of the given headerTransformer().

public Class<? extends HeaderTransformer>

Returns:

a transformation to be applied over headers/positions of the nested class. Used for reassigning specific input columns so the correct values end up in the correct nested attributes.
headerTransformer
()

Provides a HeaderTransformer for reassigning header names/positions of the nested class.

public Class<T>

Returns:

the type of nested object to be instantiated.
type
()

Defines the concrete type of nested object to be instantiated, if it has to be a subclass of the declared attribute type.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

argsback to summary
public String[] args()

An optional sequence of arguments for creating an instance of the given headerTransformer().

Returns:String[]

the initialization arguments passed into the constructore of the HeaderTransformer

headerTransformerback to summary
public Class<? extends HeaderTransformer> headerTransformer()

Provides a HeaderTransformer for reassigning header names/positions of the nested class.

Returns:Class<? extends HeaderTransformer>

a transformation to be applied over headers/positions of the nested class. Used for reassigning specific input columns so the correct values end up in the correct nested attributes.

typeback to summary
public Class<T> type()

Defines the concrete type of nested object to be instantiated, if it has to be a subclass of the declared attribute type.

Returns:Class<T>

the type of nested object to be instantiated.