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 ConversionAnnotationHelper.getConversion(Class classType, Annotation annotation) Identifies the proper conversion for a given type and an annotation from the packagecom.univocity.parsers.annotationsstatic ConversionAnnotationHelper.getConversion(Class fieldType, AnnotatedElement target, Annotation annotation, String nullRead, String nullWrite) static ConversionAnnotationHelper.getDefaultConversion(Class fieldType, AnnotatedElement target, Parsed parsed) Identifies the proper conversion for a given typestatic ConversionAnnotationHelper.getDefaultConversion(AnnotatedElement target) Returns the defaultConversionthat 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 TypeMethodDescriptionvoidConversionProcessor.convertAll(Conversion... conversions) Applies a set ofConversionobjects over all elements of a recordfinal voidDefaultConversionProcessor.convertAll(Conversion... conversions) ConversionProcessor.convertFields(Conversion... conversions) Applies a set ofConversionobjects over fields of a record by name.DefaultConversionProcessor.convertFields(Conversion... conversions) ConversionProcessor.convertIndexes(Conversion... conversions) Applies a set ofConversionobjects over indexes of a record.DefaultConversionProcessor.convertIndexes(Conversion... conversions) voidConversionProcessor.convertType(Class<?> type, Conversion... conversions) Applies a sequence of conversions over values of a given type.final voidDefaultConversionProcessor.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 TypeMethodDescriptionvoidFieldConversionMapping.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 voidBeanConversionProcessor.addConversion(Conversion conversion, FieldMapping mapping) Associates a conversion to a field of the java bean class.voidAbstractMultiBeanProcessor.convertAll(Conversion... conversions) AbstractMultiBeanProcessor.convertFields(Conversion... conversions) AbstractMultiBeanProcessor.convertIndexes(Conversion... conversions) voidAbstractMultiBeanProcessor.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 ofConversions to fields of a given set of field namesRecordMetaData.convertFields(Class<T> enumType, Conversion... conversions) Associates a sequence ofConversions to fields of a given set of fieldsRecordMetaData.convertIndexes(Conversion... conversions) Associates a sequence ofConversions to fields of a given set of column indexes<T> TRecord.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> TRecord.getValue(int columnIndex, T defaultValue, Conversion... conversions) Returns the value contained in a given column, after applying a sequence of conversions over it.<T> TRecord.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> TRecord.getValue(Enum<?> column, T defaultValue, Conversion... conversions) Returns the value contained in a given column, after applying a sequence of conversions over it.<T> TRecord.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> TRecord.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 TypeClassDescriptionclassConverts Strings to BigDecimals and vice versaclassConverts Strings to BigIntegers and vice versaclassConverts Strings to Booleans and vice versaclassConverts Strings to Bytes and vice versaclassConverts Strings to instances ofCalendarand vice versa.classConverts Strings to Characters and vice versaclassConverts Strings to instances ofDateand vice versa.classConverts Strings to Doubles and vice versaclassEnumConversion<T extends Enum<T>>Converts Strings to enumeration constants and vice versa.classConverts Strings to Floats and vice versaclassConverts formatted Strings to instances ofBigDecimaland vice versa.classConverts objects of different date types (java.util.Dateandjava.util.Calendar) to a formatted dateString.classConverts Strings to Integers and vice versaclassConverts Strings to Longs and vice versaclassConverts an input String to its lower case representation TheLowerCaseConversion.revert(String)implements the same behavior ofLowerCaseConversion.execute(String).classNullConversion<I,O> Default implementation for conversions from input Objects of type I to output Objects of type OclassConverts Strings to null and vice versaclassNumericConversion<T extends Number>Converts Strings to instances ofNumberand vice versa.classDefault implementation for conversions from an input String to Objects of a given type TclassReplaces contents of a given input String, identified by a regular expression, with a replacement String.classConverts Strings to Shorts and vice versaclassConverts any non-null object to its String representation.classRemoves leading and trailing white spaces from an input String TheTrimConversion.revert(String)implements the same behavior ofTrimConversion.execute(String).classConverts an input String to its upper case representation TheUpperCaseConversion.revert(String)implements the same behavior ofUpperCaseConversion.execute(String).classPerforms one or more validations against the values of a given record.