Class FuzzyMappingStrategy<T>

  • Type Parameters:
    T - The type of bean being processed
    All Implemented Interfaces:
    MappingStrategy<T>

    public class FuzzyMappingStrategy<T>
    extends HeaderColumnNameMappingStrategy<T>
    A mapping strategy that tries to make the best match between header names and non-annotated member variables.
    Since:
    5.0
    Author:
    Andrew Rucker Jones
    • Constructor Detail

      • FuzzyMappingStrategy

        public FuzzyMappingStrategy()
        Nullary constructor to make the style checker happy.
    • Method Detail

      • loadUnadornedFieldMap

        protected void loadUnadornedFieldMap​(org.apache.commons.collections4.ListValuedMap<java.lang.Class<?>,​java.lang.reflect.Field> fields)
        This implementation intentionally does nothing in order to allow fuzzy matching in case there are no annotations at all in the class in question.
        Overrides:
        loadUnadornedFieldMap in class HeaderNameBaseMappingStrategy<T>
        Parameters:
        fields - A list of all non-synthetic fields in the bean to be processed