public final class DateTimeFormatOptions extends NativeObjectContainer implements IsDefaultDateTimeFormatOptions
| Modifier and Type | Class and Description |
|---|---|
static class |
DateTimeFormatOptions.DateTimeFormatOptionsFactory
Creates a date time format options by a native object and a default values instance.
|
| Modifier and Type | Field and Description |
|---|---|
static DateTimeFormatOptions.DateTimeFormatOptionsFactory |
FACTORY
Public factory to create a date time format options from a native object.
|
| Constructor and Description |
|---|
DateTimeFormatOptions()
Creates new number format options object.
|
| Modifier and Type | Method and Description |
|---|---|
Calendar |
getCalendar()
Returns the calendar to use.
|
DateTimeStyle |
getDateStyle()
Returns the date formatting style to use when calling
AbstractFormat.format(java.lang.Object). |
NumberItemStyle |
getDay()
Returns the representation of the Day.
|
StringItemStyle |
getDayPeriod()
Returns the way day periods should be expressed.
|
protected D |
getDefaultValues() |
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.
|
LocaleMatcher |
getLocaleMatcher()
Returns the locale matching algorithm to use.
|
NumberItemStyle |
getMinute()
Returns the representation of the Minute.
|
MixedItemStyle |
getMonth()
Returns the representation of the Month.
|
NumberingSystem |
getNumberingSystem()
Returns the numbering system to use.
|
NumberItemStyle |
getSecond()
Returns the representation of the Second.
|
DateTimeStyle |
getTimeStyle()
Returns the time formatting style to use when calling
AbstractFormat.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).
|
void |
setCalendar(Calendar calendar)
Sets the calendar to use.
|
void |
setDateStyle(DateTimeStyle style)
Sets the date formatting style to use when calling
AbstractFormat.format(java.lang.Object).dateStyle can be used with timeStyle, but not with other options (e.g. |
void |
setDay(NumberItemStyle style)
Sets the representation of the Day.
|
void |
setDayPeriod(StringItemStyle dayPeriod)
Sets the way day periods should be expressed.
|
void |
setEra(StringItemStyle style)
Sets the representation of the Era.
|
void |
setFormatMatcher(FormatMatcher format)
Sets the format matching algorithm to use.
|
void |
setHour(NumberItemStyle style)
Sets the representation of the Hour.
|
void |
setHour12(boolean hour12)
Sets whether to use 12-hour time (as opposed to 24-hour time).
|
void |
setHourCycle(HourCycle hourCycle)
Sets the hour cycle to use.
The setHour12(boolean) option takes precedence in case both options have been specified. |
void |
setLocaleMatcher(LocaleMatcher localeMatcher)
Sets the locale matching algorithm to use.
|
void |
setMinute(NumberItemStyle style)
Sets the representation of the Minute.
|
void |
setMonth(MixedItemStyle style)
Sets the representation of the Month.
|
void |
setNumberingSystem(NumberingSystem numberingSystem)
Sets the numbering system to use.
|
void |
setSecond(NumberItemStyle style)
Sets the representation of the Second.
|
void |
setTimeStyle(DateTimeStyle style)
Sets the time formatting style to use when calling
AbstractFormat.format(java.lang.Object). |
void |
setTimeZone(TimeZone zone)
Sets the time zone to use.
|
void |
setTimeZoneName(TimeZoneName timeZoneName)
Sets the representation of the time zone name.
|
void |
setWeekDay(StringItemStyle style)
Sets the representation of the WeekDay.
|
void |
setYear(NumberItemStyle style)
Sets the representation of the Year.
|
checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLocaleMatcher, getNumberingSystempublic static final DateTimeFormatOptions.DateTimeFormatOptionsFactory FACTORY
public DateTimeFormatOptions()
public void setDateStyle(DateTimeStyle style)
AbstractFormat.format(java.lang.Object).style - the date formatting stylepublic DateTimeStyle getDateStyle()
AbstractFormat.format(java.lang.Object).getDateStyle in interface IsDefaultDateTimeFormatOptionspublic void setTimeStyle(DateTimeStyle style)
AbstractFormat.format(java.lang.Object). timeStyle can be used with dateStyle, but not with other
options (e.g. weekday, hour, month, etc.).style - the time formatting stylepublic DateTimeStyle getTimeStyle()
AbstractFormat.format(java.lang.Object).getTimeStyle in interface IsDefaultDateTimeFormatOptionspublic void setCalendar(Calendar calendar)
calendar - the calendar to usepublic Calendar getCalendar()
getCalendar in interface IsDefaultDateTimeFormatOptionspublic void setDayPeriod(StringItemStyle dayPeriod)
dayPeriod - the way day periods should be expressedpublic StringItemStyle getDayPeriod()
getDayPeriod in interface IsDefaultDateTimeFormatOptionspublic void setTimeZone(TimeZone zone)
zone - the time zone to usepublic TimeZone getTimeZone()
getTimeZone in interface IsDefaultDateTimeFormatOptionspublic void setHour12(boolean hour12)
hour12 - whether to use 12-hour time (as opposed to 24-hour time)public boolean isHour12()
isHour12 in interface IsDefaultDateTimeFormatOptionspublic void setHourCycle(HourCycle hourCycle)
setHour12(boolean) option takes precedence in case both options have been specified.hourCycle - the hour cycle to usepublic HourCycle getHourCycle()
getHourCycle in interface IsDefaultDateTimeFormatOptionspublic void setFormatMatcher(FormatMatcher format)
format - the format matching algorithm to usepublic FormatMatcher getFormatMatcher()
getFormatMatcher in interface IsDefaultDateTimeFormatOptionspublic void setWeekDay(StringItemStyle style)
style - the representation of the WeekDaypublic StringItemStyle getWeekDay()
getWeekDay in interface IsDefaultDateTimeFormatOptionspublic void setEra(StringItemStyle style)
style - the representation of the Erapublic StringItemStyle getEra()
getEra in interface IsDefaultDateTimeFormatOptionspublic void setYear(NumberItemStyle style)
style - the representation of the Yearpublic NumberItemStyle getYear()
getYear in interface IsDefaultDateTimeFormatOptionspublic void setMonth(MixedItemStyle style)
style - the representation of the Monthpublic MixedItemStyle getMonth()
getMonth in interface IsDefaultDateTimeFormatOptionspublic void setDay(NumberItemStyle style)
style - the representation of the Daypublic NumberItemStyle getDay()
getDay in interface IsDefaultDateTimeFormatOptionspublic void setHour(NumberItemStyle style)
style - the representation of the Hourpublic NumberItemStyle getHour()
getHour in interface IsDefaultDateTimeFormatOptionspublic void setMinute(NumberItemStyle style)
style - the representation of the Minutepublic NumberItemStyle getMinute()
getMinute in interface IsDefaultDateTimeFormatOptionspublic void setSecond(NumberItemStyle style)
style - the representation of the Secondpublic NumberItemStyle getSecond()
getSecond in interface IsDefaultDateTimeFormatOptionspublic void setTimeZoneName(TimeZoneName timeZoneName)
timeZoneName - the representation of the time zone namepublic TimeZoneName getTimeZoneName()
getTimeZoneName in interface IsDefaultDateTimeFormatOptionsprotected final D getDefaultValues()
public final void setLocaleMatcher(LocaleMatcher localeMatcher)
localeMatcher - the locale matching algorithm to usepublic final LocaleMatcher getLocaleMatcher()
getLocaleMatcher in interface IsDefaultBaseFormatOptionspublic final void setNumberingSystem(NumberingSystem numberingSystem)
numberingSystem - the numbering system to usepublic final NumberingSystem getNumberingSystem()
getNumberingSystem in interface IsDefaultBaseFormatOptions