| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| pack-priv final C | |
| private Map | |
| private FieldConversionMapping | |
| private Map | |
| private MetaData[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv <T> Annotation | |
| pack-priv static Annotation | |
| public boolean | containsColumn(String
name of the header headerName)Implements com. Records parsed from the input
|
| private <T> T | |
| private Object | |
| private static Object | |
| private <T> T | |
| public <T extends Enum | convertFields(Class<T>
the type of the enumeration whose values represent headers in the input enumType, Conversion<I, O>... Recordsthe sequence of conversions to apply conversions)Implements com. Conversions to fields of a given set of fields
|
| public FieldSet | convertFields(Conversion<I, O>...
the sequence of conversions to apply conversions)Implements com. Conversions to fields of a given set of field names
|
| public FieldSet | convertIndexes(Conversion<I, O>...
the sequence of conversions to apply conversions)Implements com. Conversions to fields of a given set of column indexes
|
| public Object | defaultValueOf(Enum<?>
the column whose default value will be returned column)Implements com. setDefaultValueOf(Column, Object))
|
| public Object | defaultValueOf(String
the column name whose default value will be returned headerName)Implements com. setDefaultValueOf(Column, Object))
|
| public Object | defaultValueOf(int
the column index whose default value will be returned columnIndex)Implements com. setDefaultValueOf(Column, Object))
|
| private FieldConversionMapping | |
| private MetaData | |
| private MetaData | |
| public MetaData | |
| pack-priv <T> T | |
| pack-priv <T> T | |
| pack-priv <T> T | |
| pack-priv <T> T | |
| pack-priv <T> T | getObjectValue(String[] data, int columnIndex, Class<T> type, T defaultValue, String format, String... formatOptions)
|
| pack-priv <T> T | |
| private NormalizedString[] | |
| pack-priv String | |
| pack-priv String | |
| pack-priv String | |
| pack-priv <T> T | |
| pack-priv <T> T | |
| pack-priv <T> T | |
| pack-priv <T> T | |
| pack-priv <T> T | |
| pack-priv <T> T | |
| public String[] | headers()
Implements com. Records parsed from the input.
|
| public int | indexOf(Enum<?>
the column whose index will be returned column)Implements com. |
| public int | indexOf(String
name of the column whose index will be returned headerName)Implements com. |
| private void | |
| pack-priv MetaData | |
| pack-priv MetaData | |
| pack-priv MetaData | |
| private static Annotation | |
| public String[] | selectedHeaders()
Implements com. |
| public <T> void | setDefaultValueOfColumns(T
the value to be used for the given column when the parsed result is defaultValue, Enum<?>... nullthe columns to be associated with a default value. columns)Implements com. null
|
| public <T> void | setDefaultValueOfColumns(T
the value to be used for the given column when the parsed result is defaultValue, String... nullthe column names to be associated with a default value. headerNames)Implements com. null
|
| public <T> void | setDefaultValueOfColumns(T
the value to be used for the given column when the parsed result is defaultValue, int... nullthe column indexes to be associated with a default value. columnIndexes)Implements com. null
|
| public void | setTypeOfColumns(Class<?>
the type to associate with a list of column type, Enum<E extends Enum<E>>... the columns that will be associated with the given type. columns)Implements com. |
| public void | setTypeOfColumns(Class<?>
the type to associate with a list of column type, String... the columns that will be associated with the given type. headerNames)Implements com. |
| public void | setTypeOfColumns(Class<?>
the type to associate with a list of column type, int... the columns that will be associated with the given type. columnIndexes)Implements com. |
| public Class | typeOf(Enum<?>
the column whose type will be returned column)Implements com. setTypeOfColumns(type, columns)
|
| public Class | typeOf(String
name of the column whose type will be returned headerName)Implements com. setTypeOfColumns(type, columns)
|
| public Class | typeOf(int
the position of the column whose type will be returned columnIndex)Implements com. setTypeOfColumns(type, columns)
|
| annotationHashes | back to summary |
|---|---|
| private Map<Integer, Annotation> annotationHashes | |
| context | back to summary |
|---|---|
| pack-priv final C context | |
| conversionByType | back to summary |
|---|---|
private Map<Class<T>, Conversion<I, O>> conversionByType
| |
| conversions | back to summary |
|---|---|
| private FieldConversionMapping conversions | |
| conversionsByAnnotation | back to summary |
|---|---|
private Map<Class<T>, Map<Annotation, Conversion<I, O>>> conversionsByAnnotation
| |
| indexMap | back to summary |
|---|---|
| private MetaData[] indexMap | |
| RecordMetaDataImpl | back to summary |
|---|---|
| pack-priv RecordMetaDataImpl(C context) | |
| buildAnnotation | back to summary |
|---|---|
| pack-priv <T> Annotation buildAnnotation(Class<T> type, final String args1, final String... args2) | |
| buildBooleanStringAnnotation | back to summary |
|---|---|
| pack-priv static Annotation buildBooleanStringAnnotation(final String[] trueStrings, final String[] falseStrings) | |
| containsColumn | back to summary |
|---|---|
| public boolean containsColumn(String headerName) Implements com. Doc from com. Queries whether a given header name exists in the | |
| convert | back to summary |
|---|---|
private <T> T convert(MetaData md, String[] data, Class<T> expectedType, Conversion<I, O>[] conversions)
| |
| convert | back to summary |
|---|---|
private Object convert(MetaData md, String[] data, Object defaultValue, Conversion<I, O>[] conversions)
| |
| convert | back to summary |
|---|---|
private static Object convert(MetaData md, String[] data, Conversion<I, O>[] conversions)
| |
| convert | back to summary |
|---|---|
private <T> T convert(MetaData md, String[] data, Class<T> type, T defaultValue, Annotation annotation)
| |
| convertFields | back to summary |
|---|---|
| public <T extends Enum Implements com. Doc from com. Associates a sequence of
| |
| convertFields | back to summary |
|---|---|
| public FieldSet Implements com. Doc from com. Associates a sequence of
| |
| convertIndexes | back to summary |
|---|---|
| public FieldSet Implements com. Doc from com. Associates a sequence of
| |
| defaultValueOf | back to summary |
|---|---|
| public Object defaultValueOf(Enum<?> column) Implements com. Doc from com. Returns the default value associated with a column (defined using | |
| defaultValueOf | back to summary |
|---|---|
| public Object defaultValueOf(String headerName) Implements com. Doc from com. Returns the default value associated with a column (defined using | |
| defaultValueOf | back to summary |
|---|---|
| public Object defaultValueOf(int columnIndex) Implements com. Doc from com. Returns the default value associated with a column (defined using | |
| getConversions | back to summary |
|---|---|
| private FieldConversionMapping getConversions() | |
| getMetaData | back to summary |
|---|---|
| private MetaData getMetaData(String name) | |
| getMetaData | back to summary |
|---|---|
| private MetaData getMetaData(Enum<?> column) | |
| getMetaData | back to summary |
|---|---|
| public MetaData getMetaData(int index) | |
| getObjectValue | back to summary |
|---|---|
| pack-priv <T> T getObjectValue(String[] data, String headerName, Class<T> type, T defaultValue) | |
| getObjectValue | back to summary |
|---|---|
| pack-priv <T> T getObjectValue(String[] data, int columnIndex, Class<T> type, T defaultValue) | |
| getObjectValue | back to summary |
|---|---|
| pack-priv <T> T getObjectValue(String[] data, Enum<?> column, Class<T> type, T defaultValue) | |
| getObjectValue | back to summary |
|---|---|
| pack-priv <T> T getObjectValue(String[] data, String headerName, Class<T> type, T defaultValue, String format, String... formatOptions) | |
| getObjectValue | back to summary |
|---|---|
| pack-priv <T> T getObjectValue(String[] data, int columnIndex, Class<T> type, T defaultValue, String format, String... formatOptions) | |
| getObjectValue | back to summary |
|---|---|
| pack-priv <T> T getObjectValue(String[] data, Enum<?> column, Class<T> type, T defaultValue, String format, String... formatOptions) | |
| getValidatedHeaders | back to summary |
|---|---|
| private NormalizedString[] getValidatedHeaders() | |
| getValue | back to summary |
|---|---|
| pack-priv String getValue(String[] data, String headerName) | |
| getValue | back to summary |
|---|---|
| pack-priv String getValue(String[] data, int columnIndex) | |
| getValue | back to summary |
|---|---|
| pack-priv String getValue(String[] data, Enum<?> column) | |
| getValue | back to summary |
|---|---|
pack-priv <T> T getValue(String[] data, String headerName, T defaultValue, Conversion<I, O>[] conversions)
| |
| getValue | back to summary |
|---|---|
pack-priv <T> T getValue(String[] data, int columnIndex, T defaultValue, Conversion<I, O>[] conversions)
| |
| getValue | back to summary |
|---|---|
pack-priv <T> T getValue(String[] data, Enum<?> column, T defaultValue, Conversion<I, O>[] conversions)
| |
| getValue | back to summary |
|---|---|
pack-priv <T> T getValue(String[] data, String headerName, Class<T> expectedType, Conversion<I, O>[] conversions)
| |
| getValue | back to summary |
|---|---|
pack-priv <T> T getValue(String[] data, int columnIndex, Class<T> expectedType, Conversion<I, O>[] conversions)
| |
| getValue | back to summary |
|---|---|
pack-priv <T> T getValue(String[] data, Enum<?> column, Class<T> expectedType, Conversion<I, O>[] conversions)
| |
| headers | back to summary |
|---|---|
| public String[] headers() Implements com. Doc from com. Returns the column names of the If the headers are extracted from the input (i.e. If no headers are extracted from the input, then the configured headers in | |
| indexOf | back to summary |
|---|---|
| public int indexOf(Enum<?> column) Implements com. Doc from com. Returns the index of a given column | |
| indexOf | back to summary |
|---|---|
| public int indexOf(String headerName) Implements com. Doc from com. Returns the index of a given column | |
| initializeMetadataConversions | back to summary |
|---|---|
| private void initializeMetadataConversions(String[] data, MetaData md) | |
| metadataOf | back to summary |
|---|---|
| pack-priv MetaData metadataOf(String headerName) | |
| metadataOf | back to summary |
|---|---|
| pack-priv MetaData metadataOf(Enum<?> column) | |
| metadataOf | back to summary |
|---|---|
| pack-priv MetaData metadataOf(int columnIndex) | |
| newFormatAnnotation | back to summary |
|---|---|
| private static Annotation newFormatAnnotation(final String format, final String... formatOptions) | |
| selectedHeaders | back to summary |
|---|---|
| public String[] selectedHeaders() Implements com. Doc from com. Returns the sequence of headers that have been selected. If no selection has been made, all available headers
will be returned, producing the same output as a call to method | |
| setDefaultValueOfColumns | back to summary |
|---|---|
| public <T> void setDefaultValueOfColumns(T defaultValue, Enum<?>... columns) Implements com. Doc from com. Associates a default value with one or more columns, in case the values contained are | |
| setDefaultValueOfColumns | back to summary |
|---|---|
| public <T> void setDefaultValueOfColumns(T defaultValue, String... headerNames) Implements com. Doc from com. Associates a default value with one or more columns, in case the values contained are | |
| setDefaultValueOfColumns | back to summary |
|---|---|
| public <T> void setDefaultValueOfColumns(T defaultValue, int... columnIndexes) Implements com. Doc from com. Associates a default value with one or more columns, in case the values contained are
| |
| setTypeOfColumns | back to summary |
|---|---|
| public void setTypeOfColumns(Class<?> type, Enum<E extends Enum<E>>... columns) Implements com. Doc from com. Associates a type with one or more column. This allows the parsed data to be converted automatically
to the given type when reading data from a
| |
| setTypeOfColumns | back to summary |
|---|---|
| public void setTypeOfColumns(Class<?> type, String... headerNames) Implements com. Doc from com. Associates a type with one or more column. This allows the parsed data to be converted automatically
to the given type when reading data from a | |
| setTypeOfColumns | back to summary |
|---|---|
| public void setTypeOfColumns(Class<?> type, int... columnIndexes) Implements com. Doc from com. Associates a type with one or more column. This allows the parsed data to be converted automatically
to the given type when reading data from a | |
| typeOf | back to summary |
|---|---|
| public Class Implements com. Doc from com. Returns the type associated with a given column, defined with the method | |
| typeOf | back to summary |
|---|---|
| public Class Implements com. Doc from com. Returns the type associated with a given column name, defined with the method | |
| typeOf | back to summary |
|---|---|
| public Class Implements com. Doc from com. Returns the type associated with a given column, defined with the method | |