Uses of Interface
com.univocity.parsers.conversions.Conversion
-
-
Uses of Conversion in com.univocity.parsers.annotations
Methods in com.univocity.parsers.annotations that return types with arguments of type Conversion Modifier and Type Method Description java.lang.Class<? extends Conversion>
conversionClass()
A user provided implementation ofConversion
which will be instantiated using the arguments provided byConvert.args()
-
Uses of Conversion in com.univocity.parsers.annotations.helpers
Methods in com.univocity.parsers.annotations.helpers that return Conversion Modifier and Type Method Description static Conversion
AnnotationHelper. getConversion(java.lang.Class classType, java.lang.annotation.Annotation annotation)
Identifies the proper conversion for a given type and an annotation from the packagecom.univocity.parsers.annotations
static Conversion
AnnotationHelper. getConversion(java.lang.Class fieldType, java.lang.reflect.AnnotatedElement target, java.lang.annotation.Annotation annotation, java.lang.String nullRead, java.lang.String nullWrite)
static Conversion
AnnotationHelper. getDefaultConversion(java.lang.Class fieldType, java.lang.reflect.AnnotatedElement target, Parsed parsed)
Identifies the proper conversion for a given typestatic Conversion
AnnotationHelper. getDefaultConversion(java.lang.reflect.AnnotatedElement target)
Returns the defaultConversion
that should be applied to the field based on its type. -
Uses of Conversion in com.univocity.parsers.common
Methods in com.univocity.parsers.common with parameters of type Conversion Modifier and Type Method Description void
ConversionProcessor. convertAll(Conversion... conversions)
Applies a set ofConversion
objects over all elements of a recordvoid
DefaultConversionProcessor. convertAll(Conversion... conversions)
FieldSet<java.lang.String>
ConversionProcessor. convertFields(Conversion... conversions)
Applies a set ofConversion
objects over fields of a record by name.FieldSet<java.lang.String>
DefaultConversionProcessor. convertFields(Conversion... conversions)
FieldSet<java.lang.Integer>
ConversionProcessor. convertIndexes(Conversion... conversions)
Applies a set ofConversion
objects over indexes of a record.FieldSet<java.lang.Integer>
DefaultConversionProcessor. convertIndexes(Conversion... conversions)
void
ConversionProcessor. convertType(java.lang.Class<?> type, Conversion... conversions)
Applies a sequence of conversions over values of a given type.void
DefaultConversionProcessor. convertType(java.lang.Class<?> type, Conversion... conversions)
-
Uses of Conversion in com.univocity.parsers.common.fields
Fields in com.univocity.parsers.common.fields declared as Conversion Modifier and Type Field Description private static Conversion[]
FieldConversionMapping. EMPTY_CONVERSION_ARRAY
Fields in com.univocity.parsers.common.fields with type parameters of type Conversion Modifier and Type Field Description private java.util.Map<java.lang.Integer,java.util.List<Conversion<?,?>>>
FieldConversionMapping. conversionsByIndex
This is the final sequence of conversions applied to each index in a record.Methods in com.univocity.parsers.common.fields that return Conversion Modifier and Type Method Description Conversion[]
FieldConversionMapping. getConversions(int index, java.lang.Class<?> expectedType)
Returns the sequence of conversions to be applied at a given column indexMethods in com.univocity.parsers.common.fields with parameters of type Conversion Modifier and Type Method Description void
FieldConversionMapping. applyConversionsOnAllFields(Conversion<java.lang.String,?>... conversions)
Applies a sequence of conversions on all fields.FieldSet<java.lang.Enum>
FieldConversionMapping. applyConversionsOnFieldEnums(Conversion<java.lang.String,?>... conversions)
Applies a sequence of conversions on a selection of enumerations that represent fieldsFieldSet<java.lang.Integer>
FieldConversionMapping. applyConversionsOnFieldIndexes(Conversion<java.lang.String,?>... conversions)
Applies a sequence of conversions on a selection of field indexesFieldSet<java.lang.String>
FieldConversionMapping. applyConversionsOnFieldNames(Conversion<java.lang.String,?>... conversions)
Applies a sequence of conversions on a selection of field nameFieldSet<T>
AbstractConversionMapping. registerConversions(Conversion<java.lang.String,?>... conversions)
Registers a sequence of conversions to a set of fields.private static void
AbstractConversionMapping. validateDuplicates(FieldSelector selector, java.util.List<Conversion<?,?>> conversionsAtIndex, Conversion<?,?>[] conversionsToAdd)
Ensures an individual field does not have the same conversion object applied to it more than once.Method parameters in com.univocity.parsers.common.fields with type arguments of type Conversion Modifier and Type Method Description void
AbstractConversionMapping. prepareExecution(boolean writing, FieldSelector selector, java.util.Map<java.lang.Integer,java.util.List<Conversion<?,?>>> conversionsByIndex, java.lang.String[] values)
Get all indexes in the given selector and adds the conversions defined at that index to the map of conversionsByIndex.private static void
AbstractConversionMapping. validateDuplicates(FieldSelector selector, java.util.List<Conversion<?,?>> conversionsAtIndex, Conversion<?,?>[] conversionsToAdd)
Ensures an individual field does not have the same conversion object applied to it more than once. -
Uses of Conversion in com.univocity.parsers.common.processor.core
Methods in com.univocity.parsers.common.processor.core with parameters of type Conversion Modifier and Type Method Description protected void
BeanConversionProcessor. addConversion(Conversion conversion, FieldMapping mapping)
Associates a conversion to a field of the java bean class.private boolean
BeanConversionProcessor. applyDefaultConversion(Conversion lastConversionApplied, Conversion defaultConversion)
void
AbstractMultiBeanProcessor. convertAll(Conversion... conversions)
FieldSet<java.lang.String>
AbstractMultiBeanProcessor. convertFields(Conversion... conversions)
FieldSet<java.lang.Integer>
AbstractMultiBeanProcessor. convertIndexes(Conversion... conversions)
void
AbstractMultiBeanProcessor. convertType(java.lang.Class<?> type, Conversion... conversions)
private java.lang.reflect.Method
BeanConversionProcessor. getConversionMethod(Conversion conversion, java.lang.String methodName)
-
Uses of Conversion in com.univocity.parsers.common.record
Fields in com.univocity.parsers.common.record declared as Conversion Modifier and Type Field Description private Conversion[]
MetaData. conversions
Fields in com.univocity.parsers.common.record with type parameters of type Conversion Modifier and Type Field Description private java.util.Map<java.lang.Class,Conversion>
RecordMetaDataImpl. conversionByType
private java.util.Map<java.lang.Class,java.util.Map<java.lang.annotation.Annotation,Conversion>>
RecordMetaDataImpl. conversionsByAnnotation
Methods in com.univocity.parsers.common.record that return Conversion Modifier and Type Method Description Conversion[]
MetaData. getConversions()
Methods in com.univocity.parsers.common.record with parameters of type Conversion Modifier and Type Method Description private static java.lang.Object
RecordMetaDataImpl. convert(MetaData md, java.lang.String[] data, Conversion[] conversions)
private <T> T
RecordMetaDataImpl. convert(MetaData md, java.lang.String[] data, java.lang.Class<T> expectedType, Conversion[] conversions)
private java.lang.Object
RecordMetaDataImpl. convert(MetaData md, java.lang.String[] data, java.lang.Object defaultValue, Conversion[] conversions)
FieldSet<java.lang.String>
RecordMetaData. convertFields(Conversion... conversions)
Associates a sequence ofConversion
s to fields of a given set of field names<T extends java.lang.Enum<T>>
FieldSet<T>RecordMetaData. convertFields(java.lang.Class<T> enumType, Conversion... conversions)
Associates a sequence ofConversion
s to fields of a given set of fieldsFieldSet<java.lang.String>
RecordMetaDataImpl. convertFields(Conversion... conversions)
<T extends java.lang.Enum<T>>
FieldSet<T>RecordMetaDataImpl. convertFields(java.lang.Class<T> enumType, Conversion... conversions)
FieldSet<java.lang.Integer>
RecordMetaData. convertIndexes(Conversion... conversions)
Associates a sequence ofConversion
s to fields of a given set of column indexesFieldSet<java.lang.Integer>
RecordMetaDataImpl. convertIndexes(Conversion... conversions)
<T> T
Record. getValue(int columnIndex, java.lang.Class<T> expectedType, Conversion... conversions)
Returns the value contained in the given column, after applying a sequence of conversion over it.<T> T
Record. getValue(int columnIndex, T defaultValue, Conversion... conversions)
Returns the value contained in a given column, after applying a sequence of conversions over it.<T> T
Record. getValue(java.lang.Enum<?> column, java.lang.Class<T> expectedType, Conversion... conversions)
Returns the value contained in the given column, after applying a sequence of conversion over it.<T> T
Record. getValue(java.lang.Enum<?> column, T defaultValue, Conversion... conversions)
Returns the value contained in a given column, after applying a sequence of conversions over it.<T> T
Record. getValue(java.lang.String headerName, java.lang.Class<T> expectedType, Conversion... conversions)
Returns the value contained in the given column, after applying a sequence of conversion over it.<T> T
Record. getValue(java.lang.String headerName, T defaultValue, Conversion... conversions)
Returns the value contained in a given column, after applying a sequence of conversions over it.<T> T
RecordImpl. getValue(int columnIndex, java.lang.Class<T> expectedType, Conversion... conversions)
<T> T
RecordImpl. getValue(int columnIndex, T defaultValue, Conversion... conversions)
<T> T
RecordImpl. getValue(java.lang.Enum<?> column, java.lang.Class<T> expectedType, Conversion... conversions)
<T> T
RecordImpl. getValue(java.lang.Enum<?> column, T defaultValue, Conversion... conversions)
<T> T
RecordImpl. getValue(java.lang.String headerName, java.lang.Class<T> expectedType, Conversion... conversions)
<T> T
RecordImpl. getValue(java.lang.String headerName, T defaultValue, Conversion... conversions)
(package private) <T> T
RecordMetaDataImpl. getValue(java.lang.String[] data, int columnIndex, java.lang.Class<T> expectedType, Conversion[] conversions)
(package private) <T> T
RecordMetaDataImpl. getValue(java.lang.String[] data, int columnIndex, T defaultValue, Conversion[] conversions)
(package private) <T> T
RecordMetaDataImpl. getValue(java.lang.String[] data, java.lang.Enum<?> column, java.lang.Class<T> expectedType, Conversion[] conversions)
(package private) <T> T
RecordMetaDataImpl. getValue(java.lang.String[] data, java.lang.Enum<?> column, T defaultValue, Conversion[] conversions)
(package private) <T> T
RecordMetaDataImpl. getValue(java.lang.String[] data, java.lang.String headerName, java.lang.Class<T> expectedType, Conversion[] conversions)
(package private) <T> T
RecordMetaDataImpl. getValue(java.lang.String[] data, java.lang.String headerName, T defaultValue, Conversion[] conversions)
void
MetaData. setDefaultConversions(Conversion[] conversions)
-
Uses of Conversion in com.univocity.parsers.conversions
Classes in com.univocity.parsers.conversions that implement Conversion Modifier and Type Class Description class
BigDecimalConversion
Converts Strings to BigDecimals and vice versaclass
BigIntegerConversion
Converts Strings to BigIntegers and vice versaclass
BooleanConversion
Converts Strings to Booleans and vice versaclass
ByteConversion
Converts Strings to Bytes and vice versaclass
CalendarConversion
Converts Strings to instances ofCalendar
and vice versa.class
CharacterConversion
Converts Strings to Characters and vice versaclass
DateConversion
Converts Strings to instances ofDate
and vice versa.class
DoubleConversion
Converts Strings to Doubles and vice versaclass
EnumConversion<T extends java.lang.Enum<T>>
Converts Strings to enumeration constants and vice versa.class
FloatConversion
Converts Strings to Floats and vice versaclass
FormattedBigDecimalConversion
Converts formatted Strings to instances ofBigDecimal
and vice versa.class
FormattedDateConversion
Converts objects of different date types (java.util.Date
andjava.util.Calendar
) to a formatted dateString
.class
IntegerConversion
Converts Strings to Integers and vice versaclass
LongConversion
Converts Strings to Longs and vice versaclass
LowerCaseConversion
Converts an input String to its lower case representation TheLowerCaseConversion.revert(String)
implements the same behavior ofLowerCaseConversion.execute(String)
.class
NullConversion<I,O>
Default implementation for conversions from input Objects of type I to output Objects of type Oclass
NullStringConversion
Converts Strings to null and vice versaclass
NumericConversion<T extends java.lang.Number>
Converts Strings to instances ofNumber
and vice versa.class
ObjectConversion<T>
Default implementation for conversions from an input String to Objects of a given type Tclass
RegexConversion
Replaces contents of a given input String, identified by a regular expression, with a replacement String.class
ShortConversion
Converts Strings to Shorts and vice versaclass
ToStringConversion
Converts any non-null object to its String representation.class
TrimConversion
Removes leading and trailing white spaces from an input String TheTrimConversion.revert(String)
implements the same behavior ofTrimConversion.execute(String)
.class
UpperCaseConversion
Converts an input String to its upper case representation TheUpperCaseConversion.revert(String)
implements the same behavior ofUpperCaseConversion.execute(String)
.class
ValidatedConversion
Performs one or more validations against the values of a given record.
-