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 IsDefaultDateTimeFormatOptionsINSTANCEImmutable instance with the number format defaults.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CalendargetCalendar()Returns the calendar to use.DateTimeStylegetDateStyle()Returns the date formatting style to use when callingAbstractFormat.format(java.lang.Object).NumberItemStylegetDay()Returns the representation of the Day.StringItemStylegetDayPeriod()Returns the way day periods should be expressed.StringItemStylegetEra()Returns the representation of the Era.FormatMatchergetFormatMatcher()Returns the format matching algorithm to use.NumberItemStylegetHour()Returns the representation of the Hour.HourCyclegetHourCycle()Returns the hour cycle to use.NumberItemStylegetMinute()Returns the representation of the Minute.MixedItemStylegetMonth()Returns the representation of the Month.NumberItemStylegetSecond()Returns the representation of the Second.DateTimeStylegetTimeStyle()Returns the time formatting style to use when callingAbstractFormat.format(java.lang.Object).TimeZonegetTimeZone()Returns the time zone to use.TimeZoneNamegetTimeZoneName()Returns the representation of the time zone name.StringItemStylegetWeekDay()Returns the representation of the WeekDay.NumberItemStylegetYear()Returns the representation of the Year.booleanisHour12()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:IsDefaultDateTimeFormatOptionsReturns the date formatting style to use when callingAbstractFormat.format(java.lang.Object).- Specified by:
getDateStylein interfaceIsDefaultDateTimeFormatOptions- Returns:
- the date formatting style
-
getTimeStyle
public DateTimeStyle getTimeStyle()
Description copied from interface:IsDefaultDateTimeFormatOptionsReturns the time formatting style to use when callingAbstractFormat.format(java.lang.Object).- Specified by:
getTimeStylein interfaceIsDefaultDateTimeFormatOptions- Returns:
- the time formatting style
-
getCalendar
public Calendar getCalendar()
Description copied from interface:IsDefaultDateTimeFormatOptionsReturns the calendar to use.- Specified by:
getCalendarin interfaceIsDefaultDateTimeFormatOptions- Returns:
- the calendar to use
-
getDayPeriod
public StringItemStyle getDayPeriod()
Description copied from interface:IsDefaultDateTimeFormatOptionsReturns the way day periods should be expressed.- Specified by:
getDayPeriodin interfaceIsDefaultDateTimeFormatOptions- Returns:
- the way day periods should be expressed
-
getTimeZone
public TimeZone getTimeZone()
Description copied from interface:IsDefaultDateTimeFormatOptionsReturns the time zone to use.- Specified by:
getTimeZonein interfaceIsDefaultDateTimeFormatOptions- Returns:
- the time zone to use
-
isHour12
public boolean isHour12()
Description copied from interface:IsDefaultDateTimeFormatOptionsReturns whether to use 12-hour time (as opposed to 24-hour time).- Specified by:
isHour12in interfaceIsDefaultDateTimeFormatOptions- Returns:
- whether to use 12-hour time (as opposed to 24-hour time)
-
getHourCycle
public HourCycle getHourCycle()
Description copied from interface:IsDefaultDateTimeFormatOptionsReturns the hour cycle to use.- Specified by:
getHourCyclein interfaceIsDefaultDateTimeFormatOptions- Returns:
- the hour cycle to use
-
getFormatMatcher
public FormatMatcher getFormatMatcher()
Description copied from interface:IsDefaultDateTimeFormatOptionsReturns the format matching algorithm to use.- Specified by:
getFormatMatcherin interfaceIsDefaultDateTimeFormatOptions- Returns:
- the format matching algorithm to use
-
getWeekDay
public StringItemStyle getWeekDay()
Description copied from interface:IsDefaultDateTimeFormatOptionsReturns the representation of the WeekDay.- Specified by:
getWeekDayin interfaceIsDefaultDateTimeFormatOptions- Returns:
- the representation of the WeekDay
-
getEra
public StringItemStyle getEra()
Description copied from interface:IsDefaultDateTimeFormatOptionsReturns the representation of the Era.- Specified by:
getErain interfaceIsDefaultDateTimeFormatOptions- Returns:
- the representation of the Era
-
getYear
public NumberItemStyle getYear()
Description copied from interface:IsDefaultDateTimeFormatOptionsReturns the representation of the Year.- Specified by:
getYearin interfaceIsDefaultDateTimeFormatOptions- Returns:
- the representation of the Year
-
getMonth
public MixedItemStyle getMonth()
Description copied from interface:IsDefaultDateTimeFormatOptionsReturns the representation of the Month.- Specified by:
getMonthin interfaceIsDefaultDateTimeFormatOptions- Returns:
- the representation of the Month
-
getDay
public NumberItemStyle getDay()
Description copied from interface:IsDefaultDateTimeFormatOptionsReturns the representation of the Day.- Specified by:
getDayin interfaceIsDefaultDateTimeFormatOptions- Returns:
- the representation of the Day
-
getHour
public NumberItemStyle getHour()
Description copied from interface:IsDefaultDateTimeFormatOptionsReturns the representation of the Hour.- Specified by:
getHourin interfaceIsDefaultDateTimeFormatOptions- Returns:
- the representation of the Hour
-
getMinute
public NumberItemStyle getMinute()
Description copied from interface:IsDefaultDateTimeFormatOptionsReturns the representation of the Minute.- Specified by:
getMinutein interfaceIsDefaultDateTimeFormatOptions- Returns:
- the representation of the Minute
-
getSecond
public NumberItemStyle getSecond()
Description copied from interface:IsDefaultDateTimeFormatOptionsReturns the representation of the Second.- Specified by:
getSecondin interfaceIsDefaultDateTimeFormatOptions- Returns:
- the representation of the Second
-
getTimeZoneName
public TimeZoneName getTimeZoneName()
Description copied from interface:IsDefaultDateTimeFormatOptionsReturns the representation of the time zone name.- Specified by:
getTimeZoneNamein interfaceIsDefaultDateTimeFormatOptions- Returns:
- the representation of the time zone name
-
-