Annotation Type Nested
-
@Retention(RUNTIME) @Inherited @Target({FIELD,METHOD,ANNOTATION_TYPE}) public @interface NestedMarks 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 thetype()option, that contains one or moreParsedannotations. The given type and itsParsedannotations will determine which fields from each row should be used to populate theNestedinstance.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String[]argsAn optional sequence of arguments for creating an instance of the givenheaderTransformer().java.lang.Class<? extends HeaderTransformer>headerTransformerProvides aHeaderTransformerfor reassigning header names/positions of the nested class.java.lang.ClasstypeDefines the concrete type of nested object to be instantiated, if it has to be a subclass of the declared attribute type.
-
-
-
-
headerTransformer
java.lang.Class<? extends HeaderTransformer> headerTransformer
Provides aHeaderTransformerfor reassigning header names/positions of the nested class.- 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.
- Default:
- com.univocity.parsers.annotations.HeaderTransformer.class
-
-
-
args
java.lang.String[] args
An optional sequence of arguments for creating an instance of the givenheaderTransformer().- Returns:
- the initialization arguments passed into the constructore of the
HeaderTransformer
- Default:
- {}
-
-