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 ofConversionwhich 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 ConversionAnnotationHelper. 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.annotationsstatic ConversionAnnotationHelper. getConversion(java.lang.Class fieldType, java.lang.reflect.AnnotatedElement target, java.lang.annotation.Annotation annotation, java.lang.String nullRead, java.lang.String nullWrite)static ConversionAnnotationHelper. getDefaultConversion(java.lang.Class fieldType, java.lang.reflect.AnnotatedElement target, Parsed parsed)Identifies the proper conversion for a given typestatic ConversionAnnotationHelper. getDefaultConversion(java.lang.reflect.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 Conversion Modifier and Type Method Description voidConversionProcessor. convertAll(Conversion... conversions)Applies a set ofConversionobjects over all elements of a recordvoidDefaultConversionProcessor. convertAll(Conversion... conversions)FieldSet<java.lang.String>ConversionProcessor. convertFields(Conversion... conversions)Applies a set ofConversionobjects 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 ofConversionobjects over indexes of a record.FieldSet<java.lang.Integer>DefaultConversionProcessor. convertIndexes(Conversion... conversions)voidConversionProcessor. convertType(java.lang.Class<?> type, Conversion... conversions)Applies a sequence of conversions over values of a given type.voidDefaultConversionProcessor. convertType(java.lang.Class<?> type, Conversion... conversions) -
Uses of Conversion in com.univocity.parsers.common.fields
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 voidFieldConversionMapping. 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 name -
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 voidBeanConversionProcessor. addConversion(Conversion conversion, FieldMapping mapping)Associates a conversion to a field of the java bean class.voidAbstractMultiBeanProcessor. convertAll(Conversion... conversions)FieldSet<java.lang.String>AbstractMultiBeanProcessor. convertFields(Conversion... conversions)FieldSet<java.lang.Integer>AbstractMultiBeanProcessor. convertIndexes(Conversion... conversions)voidAbstractMultiBeanProcessor. convertType(java.lang.Class<?> type, Conversion... conversions) -
Uses of Conversion in com.univocity.parsers.common.record
Methods in com.univocity.parsers.common.record with parameters of type Conversion Modifier and Type Method Description FieldSet<java.lang.String>RecordMetaData. convertFields(Conversion... conversions)Associates a sequence ofConversions 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 ofConversions to fields of a given set of fieldsFieldSet<java.lang.Integer>RecordMetaData. convertIndexes(Conversion... conversions)Associates a sequence ofConversions to fields of a given set of column indexes<T> TRecord. 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> 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(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> TRecord. 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> TRecord. 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> TRecord. 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. -
Uses of Conversion in com.univocity.parsers.conversions
Classes in com.univocity.parsers.conversions that implement Conversion Modifier and Type Class Description classBigDecimalConversionConverts Strings to BigDecimals and vice versaclassBigIntegerConversionConverts Strings to BigIntegers and vice versaclassBooleanConversionConverts Strings to Booleans and vice versaclassByteConversionConverts Strings to Bytes and vice versaclassCalendarConversionConverts Strings to instances ofCalendarand vice versa.classCharacterConversionConverts Strings to Characters and vice versaclassDateConversionConverts Strings to instances ofDateand vice versa.classDoubleConversionConverts Strings to Doubles and vice versaclassEnumConversion<T extends java.lang.Enum<T>>Converts Strings to enumeration constants and vice versa.classFloatConversionConverts Strings to Floats and vice versaclassFormattedBigDecimalConversionConverts formatted Strings to instances ofBigDecimaland vice versa.classFormattedDateConversionConverts objects of different date types (java.util.Dateandjava.util.Calendar) to a formatted dateString.classIntegerConversionConverts Strings to Integers and vice versaclassLongConversionConverts Strings to Longs and vice versaclassLowerCaseConversionConverts 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 OclassNullStringConversionConverts Strings to null and vice versaclassNumericConversion<T extends java.lang.Number>Converts Strings to instances ofNumberand vice versa.classObjectConversion<T>Default implementation for conversions from an input String to Objects of a given type TclassRegexConversionReplaces contents of a given input String, identified by a regular expression, with a replacement String.classShortConversionConverts Strings to Shorts and vice versaclassToStringConversionConverts any non-null object to its String representation.classTrimConversionRemoves leading and trailing white spaces from an input String TheTrimConversion.revert(String)implements the same behavior ofTrimConversion.execute(String).classUpperCaseConversionConverts an input String to its upper case representation TheUpperCaseConversion.revert(String)implements the same behavior ofUpperCaseConversion.execute(String).classValidatedConversionPerforms one or more validations against the values of a given record.
-