static class Format.DateFormat extends Format.FallbackFormat
Format.CompoundFormat
which has a
value when applied to a Calendar
object. (Values of type Date
are automatically converted into Calendar
s when you call
Format.BasicFormat.format(Date, StringBuilder)
calls
to format other kinds of values give a runtime error.)
In a typical use of this class, a format string such as "m/d/yy" is
parsed into DateFormat objects for "m", "d", and "yy", and Format.LiteralFormat
objects for "/". A Format.CompoundFormat
object
is created to bind them together.
Modifier and Type | Field and Description |
---|---|
(package private) Format.FormatLocale |
locale |
(package private) boolean |
twelveHourClock |
token
code
Constructor and Description |
---|
DateFormat(int code,
String s,
Format.FormatLocale locale,
boolean twelveHourClock) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
format(Calendar calendar,
StringBuilder buf) |
(package private) mondrian.util.Format.FormatType |
getFormatType() |
(package private) void |
setTwelveHourClock(boolean twelveHourClock) |
format, format, format
format, formatNull, isApplicableTo, isApplicableTo
Format.FormatLocale locale
boolean twelveHourClock
DateFormat(int code, String s, Format.FormatLocale locale, boolean twelveHourClock)
mondrian.util.Format.FormatType getFormatType()
getFormatType
in class Format.BasicFormat
void setTwelveHourClock(boolean twelveHourClock)
void format(Calendar calendar, StringBuilder buf)
format
in class Format.FallbackFormat