Class AbstractDateTypeConvertor

    • Constructor Detail

      • AbstractDateTypeConvertor

        public AbstractDateTypeConvertor​(java.lang.Class<?> fromType,
                                         java.lang.Class<?> toType)
        Construct a Converter between given fromType an toType.
        Parameters:
        fromType - The type being converted from.
        toType - The type being converted to.
    • Method Detail

      • getDefaultDateFormat

        protected static final java.text.SimpleDateFormat getDefaultDateFormat()
        Use this accessor to access the DEFAULT_DATE_FORMAT.
        Returns:
        A clone of DEFAULT_DATE_FORMAT.
      • getFullDatePattern

        protected static java.lang.String getFullDatePattern​(java.lang.String pattern)
        Transforms short date format pattern into full format pattern for SimpleDateFormat (e.g., "YMD" to "yyyyMMdd").
        Parameters:
        pattern - The short pattern.
        Returns:
        The full pattern.
      • configure

        public final void configure​(AbstractProperties properties)
        Configure the converter with given configuration.
        Parameters:
        properties - Properties to use.