Uses of Interface
com.univocity.parsers.conversions.Conversion
Packages that use Conversion
Package
Description
-
Uses of Conversion in com.univocity.parsers.annotations.helpers
Methods in com.univocity.parsers.annotations.helpers that return ConversionModifier and TypeMethodDescriptionstatic Conversion
AnnotationHelper.getConversion
(Class classType, Annotation annotation) Identifies the proper conversion for a given type and an annotation from the packagecom.univocity.parsers.annotations
static Conversion
AnnotationHelper.getConversion
(Class fieldType, AnnotatedElement target, Annotation annotation, String nullRead, String nullWrite) static Conversion
AnnotationHelper.getDefaultConversion
(Class fieldType, AnnotatedElement target, Parsed parsed) Identifies the proper conversion for a given typestatic Conversion
AnnotationHelper.getDefaultConversion
(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 ConversionModifier and TypeMethodDescriptionvoid
ConversionProcessor.convertAll
(Conversion... conversions) Applies a set ofConversion
objects over all elements of a recordfinal void
DefaultConversionProcessor.convertAll
(Conversion... conversions) ConversionProcessor.convertFields
(Conversion... conversions) Applies a set ofConversion
objects over fields of a record by name.DefaultConversionProcessor.convertFields
(Conversion... conversions) ConversionProcessor.convertIndexes
(Conversion... conversions) Applies a set ofConversion
objects over indexes of a record.DefaultConversionProcessor.convertIndexes
(Conversion... conversions) void
ConversionProcessor.convertType
(Class<?> type, Conversion... conversions) Applies a sequence of conversions over values of a given type.final void
DefaultConversionProcessor.convertType
(Class<?> type, Conversion... conversions) -
Uses of Conversion in com.univocity.parsers.common.fields
Methods in com.univocity.parsers.common.fields that return ConversionModifier and TypeMethodDescriptionFieldConversionMapping.getConversions
(int index, 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 ConversionModifier and TypeMethodDescriptionvoid
FieldConversionMapping.applyConversionsOnAllFields
(Conversion<String, ?>... conversions) Applies a sequence of conversions on all fields.FieldConversionMapping.applyConversionsOnFieldEnums
(Conversion<String, ?>... conversions) Applies a sequence of conversions on a selection of enumerations that represent fieldsFieldConversionMapping.applyConversionsOnFieldIndexes
(Conversion<String, ?>... conversions) Applies a sequence of conversions on a selection of field indexesFieldConversionMapping.applyConversionsOnFieldNames
(Conversion<String, ?>... conversions) Applies a sequence of conversions on a selection of field name -
Uses of Conversion in com.univocity.parsers.common.processor.core
Methods in com.univocity.parsers.common.processor.core with parameters of type ConversionModifier and TypeMethodDescriptionprotected void
BeanConversionProcessor.addConversion
(Conversion conversion, FieldMapping mapping) Associates a conversion to a field of the java bean class.void
AbstractMultiBeanProcessor.convertAll
(Conversion... conversions) AbstractMultiBeanProcessor.convertFields
(Conversion... conversions) AbstractMultiBeanProcessor.convertIndexes
(Conversion... conversions) void
AbstractMultiBeanProcessor.convertType
(Class<?> type, Conversion... conversions) -
Uses of Conversion in com.univocity.parsers.common.record
Methods in com.univocity.parsers.common.record with parameters of type ConversionModifier and TypeMethodDescriptionRecordMetaData.convertFields
(Conversion... conversions) Associates a sequence ofConversion
s to fields of a given set of field namesRecordMetaData.convertFields
(Class<T> enumType, Conversion... conversions) Associates a sequence ofConversion
s to fields of a given set of fieldsRecordMetaData.convertIndexes
(Conversion... conversions) Associates a sequence ofConversion
s to fields of a given set of column indexes<T> T
Record.getValue
(int columnIndex, 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
(Enum<?> column, 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
(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
(String headerName, 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
(String headerName, T defaultValue, Conversion... conversions) Returns the value contained in a given column, after applying a sequence of conversions over it. -
Uses of Conversion in com.univocity.parsers.conversions
Classes in com.univocity.parsers.conversions that implement ConversionModifier and TypeClassDescriptionclass
Converts Strings to BigDecimals and vice versaclass
Converts Strings to BigIntegers and vice versaclass
Converts Strings to Booleans and vice versaclass
Converts Strings to Bytes and vice versaclass
Converts Strings to instances ofCalendar
and vice versa.class
Converts Strings to Characters and vice versaclass
Converts Strings to instances ofDate
and vice versa.class
Converts Strings to Doubles and vice versaclass
EnumConversion<T extends Enum<T>>
Converts Strings to enumeration constants and vice versa.class
Converts Strings to Floats and vice versaclass
Converts formatted Strings to instances ofBigDecimal
and vice versa.class
Converts objects of different date types (java.util.Date
andjava.util.Calendar
) to a formatted dateString
.class
Converts Strings to Integers and vice versaclass
Converts Strings to Longs and vice versaclass
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
Converts Strings to null and vice versaclass
NumericConversion<T extends Number>
Converts Strings to instances ofNumber
and vice versa.class
Default implementation for conversions from an input String to Objects of a given type Tclass
Replaces contents of a given input String, identified by a regular expression, with a replacement String.class
Converts Strings to Shorts and vice versaclass
Converts any non-null object to its String representation.class
Removes leading and trailing white spaces from an input String TheTrimConversion.revert(String)
implements the same behavior ofTrimConversion.execute(String)
.class
Converts an input String to its upper case representation TheUpperCaseConversion.revert(String)
implements the same behavior ofUpperCaseConversion.execute(String)
.class
Performs one or more validations against the values of a given record.