public static class TtsSpan.DateBuilder extends TtsSpan.SemioticClassBuilder<TtsSpan.DateBuilder>
TtsSpan.TYPE_DATE
.Constructor and Description |
---|
DateBuilder()
Creates a builder for a TtsSpan of type
TtsSpan.TYPE_DATE . |
DateBuilder(Integer weekday,
Integer day,
Integer month,
Integer year)
Creates a builder for a TtsSpan of type
TtsSpan.TYPE_TIME and
possibly sets the TtsSpan.ARG_WEEKDAY , TtsSpan.ARG_DAY ,
TtsSpan.ARG_MONTH and TtsSpan.ARG_YEAR arguments. |
Modifier and Type | Method and Description |
---|---|
TtsSpan.DateBuilder |
setDay(int day)
Sets the
TtsSpan.ARG_DAY argument. |
TtsSpan.DateBuilder |
setMonth(int month)
Sets the
TtsSpan.ARG_MONTH argument. |
TtsSpan.DateBuilder |
setWeekday(int weekday)
Sets the
TtsSpan.ARG_WEEKDAY argument. |
TtsSpan.DateBuilder |
setYear(int year)
Sets the
TtsSpan.ARG_YEAR argument. |
setAnimacy, setCase, setGender, setMultiplicity
build, setIntArgument, setLongArgument, setStringArgument
public DateBuilder()
TtsSpan.TYPE_DATE
.public DateBuilder(Integer weekday, Integer day, Integer month, Integer year)
TtsSpan.TYPE_TIME
and
possibly sets the TtsSpan.ARG_WEEKDAY
, TtsSpan.ARG_DAY
,
TtsSpan.ARG_MONTH
and TtsSpan.ARG_YEAR
arguments. Pass null to any
argument to leave it unset.public TtsSpan.DateBuilder setWeekday(int weekday)
TtsSpan.ARG_WEEKDAY
argument.weekday
- The value to be set for weekday. See
TtsSpan.ARG_WEEKDAY
.#ARG_WEEKDAY}
public TtsSpan.DateBuilder setDay(int day)
TtsSpan.ARG_DAY
argument.day
- The value to be set for day. See TtsSpan.ARG_DAY
.#ARG_DAY}
public TtsSpan.DateBuilder setMonth(int month)
TtsSpan.ARG_MONTH
argument.month
- The value to be set for month. See TtsSpan.ARG_MONTH
.#ARG_MONTH}
public TtsSpan.DateBuilder setYear(int year)
TtsSpan.ARG_YEAR
argument.year
- The value to be set for year. See TtsSpan.ARG_YEAR
.#ARG_YEAR}