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
Fields in com.univocity.parsers.common.fields declared as ConversionModifier and TypeFieldDescriptionprivate static final Conversion[]FieldConversionMapping.EMPTY_CONVERSION_ARRAYFields in com.univocity.parsers.common.fields with type parameters of type ConversionModifier and TypeFieldDescriptionprivate Map<Integer,List<Conversion<?, ?>>> FieldConversionMapping.conversionsByIndexThis is the final sequence of conversions applied to each index in a record.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 nameAbstractConversionMapping.registerConversions(Conversion<String, ?>... conversions) Registers a sequence of conversions to a set of fields.private static voidAbstractConversionMapping.validateDuplicates(FieldSelector selector, 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 ConversionModifier and TypeMethodDescriptionvoidAbstractConversionMapping.prepareExecution(boolean writing, FieldSelector selector, Map<Integer, List<Conversion<?, ?>>> conversionsByIndex, String[] values) Get all indexes in the given selector and adds the conversions defined at that index to the map of conversionsByIndex.private static voidAbstractConversionMapping.validateDuplicates(FieldSelector selector, 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 ConversionModifier and TypeMethodDescriptionprotected voidBeanConversionProcessor.addConversion(Conversion conversion, FieldMapping mapping) Associates a conversion to a field of the java bean class.private booleanBeanConversionProcessor.applyDefaultConversion(Conversion lastConversionApplied, Conversion defaultConversion) voidAbstractMultiBeanProcessor.convertAll(Conversion... conversions) AbstractMultiBeanProcessor.convertFields(Conversion... conversions) AbstractMultiBeanProcessor.convertIndexes(Conversion... conversions) voidAbstractMultiBeanProcessor.convertType(Class<?> type, Conversion... conversions) private MethodBeanConversionProcessor.getConversionMethod(Conversion conversion, String methodName) -
Uses of Conversion in com.univocity.parsers.common.record
Fields in com.univocity.parsers.common.record declared as ConversionFields in com.univocity.parsers.common.record with type parameters of type ConversionModifier and TypeFieldDescriptionprivate Map<Class,Conversion> RecordMetaDataImpl.conversionByTypeprivate Map<Class,Map<Annotation, Conversion>> RecordMetaDataImpl.conversionsByAnnotationMethods in com.univocity.parsers.common.record that return ConversionMethods in com.univocity.parsers.common.record with parameters of type ConversionModifier and TypeMethodDescriptionprivate static ObjectRecordMetaDataImpl.convert(MetaData md, String[] data, Conversion[] conversions) private <T> TRecordMetaDataImpl.convert(MetaData md, String[] data, Class<T> expectedType, Conversion[] conversions) private ObjectRecordMetaDataImpl.convert(MetaData md, String[] data, Object defaultValue, Conversion[] conversions) RecordMetaData.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 fieldsRecordMetaDataImpl.convertFields(Conversion... conversions) RecordMetaDataImpl.convertFields(Class<T> enumType, Conversion... conversions) RecordMetaData.convertIndexes(Conversion... conversions) Associates a sequence ofConversions to fields of a given set of column indexesRecordMetaDataImpl.convertIndexes(Conversion... conversions) <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.<T> TRecordImpl.getValue(int columnIndex, Class<T> expectedType, Conversion... conversions) <T> TRecordImpl.getValue(int columnIndex, T defaultValue, Conversion... conversions) <T> TRecordImpl.getValue(Enum<?> column, Class<T> expectedType, Conversion... conversions) <T> TRecordImpl.getValue(Enum<?> column, T defaultValue, Conversion... conversions) <T> TRecordImpl.getValue(String headerName, Class<T> expectedType, Conversion... conversions) <T> TRecordImpl.getValue(String headerName, T defaultValue, Conversion... conversions) (package private) <T> TRecordMetaDataImpl.getValue(String[] data, int columnIndex, Class<T> expectedType, Conversion[] conversions) (package private) <T> TRecordMetaDataImpl.getValue(String[] data, int columnIndex, T defaultValue, Conversion[] conversions) (package private) <T> TRecordMetaDataImpl.getValue(String[] data, Enum<?> column, Class<T> expectedType, Conversion[] conversions) (package private) <T> TRecordMetaDataImpl.getValue(String[] data, Enum<?> column, T defaultValue, Conversion[] conversions) (package private) <T> TRecordMetaDataImpl.getValue(String[] data, String headerName, Class<T> expectedType, Conversion[] conversions) (package private) <T> TRecordMetaDataImpl.getValue(String[] data, String headerName, T defaultValue, Conversion[] conversions) voidMetaData.setDefaultConversions(Conversion[] conversions) -
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.