Class AbstractFieldMapEntry<I,​K extends java.lang.Comparable<K>,​T>

  • Type Parameters:
    I - The initializer type used to build the many-to-one mapping
    K - The type of the key used for indexing
    T - The type of the bean being converted
    All Implemented Interfaces:
    ComplexFieldMapEntry<I,​K,​T>
    Direct Known Subclasses:
    PositionToBeanField, RegexToBeanField

    public abstract class AbstractFieldMapEntry<I,​K extends java.lang.Comparable<K>,​T>
    extends java.lang.Object
    implements ComplexFieldMapEntry<I,​K,​T>
    Collects common aspects of a ComplexFieldMapEntry.
    Since:
    4.2
    Author:
    Andrew Rucker Jones
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Locale errorLocale
      The locale to be used for error messages.
      protected BeanField<T,​K> field
      The BeanField that is the target of this mapping.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractFieldMapEntry​(BeanField<T,​K> field, java.util.Locale errorLocale)
      The only constructor, and it must be called by all derived classes.
    • Field Detail

      • field

        protected final BeanField<T,​K extends java.lang.Comparable<K>> field
        The BeanField that is the target of this mapping.
      • errorLocale

        protected java.util.Locale errorLocale
        The locale to be used for error messages.
    • Constructor Detail

      • AbstractFieldMapEntry

        protected AbstractFieldMapEntry​(BeanField<T,​K> field,
                                        java.util.Locale errorLocale)
        The only constructor, and it must be called by all derived classes.
        Parameters:
        field - The BeanField being mapped to
        errorLocale - The locale to be used for error messages
    • Method Detail

      • setErrorLocale

        public void setErrorLocale​(java.util.Locale errorLocale)
        Description copied from interface: ComplexFieldMapEntry
        Sets the locale to be used for error messages.
        Specified by:
        setErrorLocale in interface ComplexFieldMapEntry<I,​K extends java.lang.Comparable<K>,​T>
        Parameters:
        errorLocale - The locale to be used for error messages