Class DefaultDateTimeFormatOptions
- java.lang.Object
-
- org.pepstock.charba.client.defaults.globals.DefaultBaseFormatOptions
-
- org.pepstock.charba.client.defaults.globals.DefaultDateTimeFormatOptions
-
- All Implemented Interfaces:
IsDefaultBaseFormatOptions
,IsDefaultDateTimeFormatOptions
public final class DefaultDateTimeFormatOptions extends DefaultBaseFormatOptions implements IsDefaultDateTimeFormatOptions
INTL default values for number format options for internationalization.- Author:
- Andrea "Stock" Stocchero
-
-
Field Summary
Fields Modifier and Type Field Description static IsDefaultDateTimeFormatOptions
INSTANCE
Immutable instance with the number format defaults.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Calendar
getCalendar()
Returns the calendar to use.DateTimeStyle
getDateStyle()
Returns the date formatting style to use when callingAbstractFormat.format(java.lang.Object)
.NumberItemStyle
getDay()
Returns the representation of the Day.StringItemStyle
getDayPeriod()
Returns the way day periods should be expressed.StringItemStyle
getEra()
Returns the representation of the Era.FormatMatcher
getFormatMatcher()
Returns the format matching algorithm to use.NumberItemStyle
getHour()
Returns the representation of the Hour.HourCycle
getHourCycle()
Returns the hour cycle to use.NumberItemStyle
getMinute()
Returns the representation of the Minute.MixedItemStyle
getMonth()
Returns the representation of the Month.NumberItemStyle
getSecond()
Returns the representation of the Second.DateTimeStyle
getTimeStyle()
Returns the time formatting style to use when callingAbstractFormat.format(java.lang.Object)
.TimeZone
getTimeZone()
Returns the time zone to use.TimeZoneName
getTimeZoneName()
Returns the representation of the time zone name.StringItemStyle
getWeekDay()
Returns the representation of the WeekDay.NumberItemStyle
getYear()
Returns the representation of the Year.boolean
isHour12()
Returns whether to use 12-hour time (as opposed to 24-hour time).-
Methods inherited from class org.pepstock.charba.client.defaults.globals.DefaultBaseFormatOptions
getLocaleMatcher, getNumberingSystem
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultBaseFormatOptions
getLocaleMatcher, getNumberingSystem
-
-
-
-
Field Detail
-
INSTANCE
public static final IsDefaultDateTimeFormatOptions INSTANCE
Immutable instance with the number format defaults.
-
-
Method Detail
-
getDateStyle
public DateTimeStyle getDateStyle()
Description copied from interface:IsDefaultDateTimeFormatOptions
Returns the date formatting style to use when callingAbstractFormat.format(java.lang.Object)
.- Specified by:
getDateStyle
in interfaceIsDefaultDateTimeFormatOptions
- Returns:
- the date formatting style
-
getTimeStyle
public DateTimeStyle getTimeStyle()
Description copied from interface:IsDefaultDateTimeFormatOptions
Returns the time formatting style to use when callingAbstractFormat.format(java.lang.Object)
.- Specified by:
getTimeStyle
in interfaceIsDefaultDateTimeFormatOptions
- Returns:
- the time formatting style
-
getCalendar
public Calendar getCalendar()
Description copied from interface:IsDefaultDateTimeFormatOptions
Returns the calendar to use.- Specified by:
getCalendar
in interfaceIsDefaultDateTimeFormatOptions
- Returns:
- the calendar to use
-
getDayPeriod
public StringItemStyle getDayPeriod()
Description copied from interface:IsDefaultDateTimeFormatOptions
Returns the way day periods should be expressed.- Specified by:
getDayPeriod
in interfaceIsDefaultDateTimeFormatOptions
- Returns:
- the way day periods should be expressed
-
getTimeZone
public TimeZone getTimeZone()
Description copied from interface:IsDefaultDateTimeFormatOptions
Returns the time zone to use.- Specified by:
getTimeZone
in interfaceIsDefaultDateTimeFormatOptions
- Returns:
- the time zone to use
-
isHour12
public boolean isHour12()
Description copied from interface:IsDefaultDateTimeFormatOptions
Returns whether to use 12-hour time (as opposed to 24-hour time).- Specified by:
isHour12
in interfaceIsDefaultDateTimeFormatOptions
- Returns:
- whether to use 12-hour time (as opposed to 24-hour time)
-
getHourCycle
public HourCycle getHourCycle()
Description copied from interface:IsDefaultDateTimeFormatOptions
Returns the hour cycle to use.- Specified by:
getHourCycle
in interfaceIsDefaultDateTimeFormatOptions
- Returns:
- the hour cycle to use
-
getFormatMatcher
public FormatMatcher getFormatMatcher()
Description copied from interface:IsDefaultDateTimeFormatOptions
Returns the format matching algorithm to use.- Specified by:
getFormatMatcher
in interfaceIsDefaultDateTimeFormatOptions
- Returns:
- the format matching algorithm to use
-
getWeekDay
public StringItemStyle getWeekDay()
Description copied from interface:IsDefaultDateTimeFormatOptions
Returns the representation of the WeekDay.- Specified by:
getWeekDay
in interfaceIsDefaultDateTimeFormatOptions
- Returns:
- the representation of the WeekDay
-
getEra
public StringItemStyle getEra()
Description copied from interface:IsDefaultDateTimeFormatOptions
Returns the representation of the Era.- Specified by:
getEra
in interfaceIsDefaultDateTimeFormatOptions
- Returns:
- the representation of the Era
-
getYear
public NumberItemStyle getYear()
Description copied from interface:IsDefaultDateTimeFormatOptions
Returns the representation of the Year.- Specified by:
getYear
in interfaceIsDefaultDateTimeFormatOptions
- Returns:
- the representation of the Year
-
getMonth
public MixedItemStyle getMonth()
Description copied from interface:IsDefaultDateTimeFormatOptions
Returns the representation of the Month.- Specified by:
getMonth
in interfaceIsDefaultDateTimeFormatOptions
- Returns:
- the representation of the Month
-
getDay
public NumberItemStyle getDay()
Description copied from interface:IsDefaultDateTimeFormatOptions
Returns the representation of the Day.- Specified by:
getDay
in interfaceIsDefaultDateTimeFormatOptions
- Returns:
- the representation of the Day
-
getHour
public NumberItemStyle getHour()
Description copied from interface:IsDefaultDateTimeFormatOptions
Returns the representation of the Hour.- Specified by:
getHour
in interfaceIsDefaultDateTimeFormatOptions
- Returns:
- the representation of the Hour
-
getMinute
public NumberItemStyle getMinute()
Description copied from interface:IsDefaultDateTimeFormatOptions
Returns the representation of the Minute.- Specified by:
getMinute
in interfaceIsDefaultDateTimeFormatOptions
- Returns:
- the representation of the Minute
-
getSecond
public NumberItemStyle getSecond()
Description copied from interface:IsDefaultDateTimeFormatOptions
Returns the representation of the Second.- Specified by:
getSecond
in interfaceIsDefaultDateTimeFormatOptions
- Returns:
- the representation of the Second
-
getTimeZoneName
public TimeZoneName getTimeZoneName()
Description copied from interface:IsDefaultDateTimeFormatOptions
Returns the representation of the time zone name.- Specified by:
getTimeZoneName
in interfaceIsDefaultDateTimeFormatOptions
- Returns:
- the representation of the time zone name
-
-