Class DataFormatOptions


  • public final class DataFormatOptions
    extends java.lang.Object
    Global options for formatting and parsing various data types.
    Since:
    4.1.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDateFormat()
      Returns the global date format.
      java.lang.String getDateTimeFormat()
      Returns the global date and time format.
      java.lang.String getDecimalSymbol()
      Returns the decimal symbol.
      java.util.Locale getLocale()
      Returns the locale.
      java.lang.String getTimeFormat()
      Returns the global time format.
      void setDateFormat​(java.lang.String dateFormat)
      Configures the global date format.
      void setDateTimeFormat​(java.lang.String dateTimeFormat)
      Configures the global date and time format.
      void setDecimalSymbol​(java.lang.String decimalSymbol)
      Configures the decimal symbol.
      void setLocale​(java.util.Locale locale)
      Configures the locale.
      void setTimeFormat​(java.lang.String timeFormat)
      Configures the global time format.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataFormatOptions

        public DataFormatOptions()
    • Method Detail

      • getDecimalSymbol

        public java.lang.String getDecimalSymbol()
        Returns the decimal symbol.
        See Also:
        setDecimalSymbol(String)
      • setDecimalSymbol

        public void setDecimalSymbol​(java.lang.String decimalSymbol)
        Configures the decimal symbol.
        See Also:
        getDecimalSymbol()
      • getDateFormat

        public java.lang.String getDateFormat()
        Returns the global date format.
        See Also:
        setDateFormat(String)
      • setDateFormat

        public void setDateFormat​(java.lang.String dateFormat)
        Configures the global date format.
        See Also:
        DefaultDataTypes.DATE
      • getDateTimeFormat

        public java.lang.String getDateTimeFormat()
        Returns the global date and time format.
        See Also:
        setDateTimeFormat(String)
      • setDateTimeFormat

        public void setDateTimeFormat​(java.lang.String dateTimeFormat)
        Configures the global date and time format.
        See Also:
        DefaultDataTypes.DATE_TIME
      • getTimeFormat

        public java.lang.String getTimeFormat()
        Returns the global time format.
        See Also:
        setTimeFormat(String)
      • setTimeFormat

        public void setTimeFormat​(java.lang.String timeFormat)
        Configures the global time format.
        See Also:
        DefaultDataTypes.TIME
      • getLocale

        public java.util.Locale getLocale()
        Returns the locale.
      • setLocale

        public void setLocale​(java.util.Locale locale)
        Configures the locale.