public static class TtsSpan.MeasureBuilder extends TtsSpan.SemioticClassBuilder<TtsSpan.MeasureBuilder>
TtsSpan.TYPE_MEASURE
.Constructor and Description |
---|
MeasureBuilder()
Creates a builder for a TtsSpan of type
TtsSpan.TYPE_MEASURE . |
Modifier and Type | Method and Description |
---|---|
TtsSpan.MeasureBuilder |
setDenominator(long denominator)
Convenience method that converts the denominator to a String and set
it to the value for
TtsSpan.ARG_DENOMINATOR . |
TtsSpan.MeasureBuilder |
setDenominator(String denominator)
Sets the
TtsSpan.ARG_DENOMINATOR argument. |
TtsSpan.MeasureBuilder |
setFractionalPart(String fractionalPart)
Sets the
TtsSpan.ARG_FRACTIONAL_PART argument. |
TtsSpan.MeasureBuilder |
setIntegerPart(long integerPart)
Convenience method that converts the integer part to a String and set
it to the value for
TtsSpan.ARG_INTEGER_PART . |
TtsSpan.MeasureBuilder |
setIntegerPart(String integerPart)
Sets the
TtsSpan.ARG_INTEGER_PART argument. |
TtsSpan.MeasureBuilder |
setNumber(long number)
Convenience method that converts the number to a String and set it to
the value for
TtsSpan.ARG_NUMBER . |
TtsSpan.MeasureBuilder |
setNumber(String number)
Sets the
TtsSpan.ARG_NUMBER argument. |
TtsSpan.MeasureBuilder |
setNumerator(long numerator)
Convenience method that converts the numerator to a String and set it
to the value for
TtsSpan.ARG_NUMERATOR . |
TtsSpan.MeasureBuilder |
setNumerator(String numerator)
Sets the
TtsSpan.ARG_NUMERATOR argument. |
TtsSpan.MeasureBuilder |
setUnit(String unit)
Sets the
TtsSpan.ARG_UNIT argument. |
setAnimacy, setCase, setGender, setMultiplicity
build, setIntArgument, setLongArgument, setStringArgument
public MeasureBuilder()
TtsSpan.TYPE_MEASURE
.public TtsSpan.MeasureBuilder setNumber(long number)
TtsSpan.ARG_NUMBER
.number
- The amount of the measure.public TtsSpan.MeasureBuilder setNumber(String number)
TtsSpan.ARG_NUMBER
argument.number
- A non-empty string of digits with an optional
leading + or -.public TtsSpan.MeasureBuilder setIntegerPart(long integerPart)
TtsSpan.ARG_INTEGER_PART
.integerPart
- The integer part of a decimal or fraction.public TtsSpan.MeasureBuilder setIntegerPart(String integerPart)
TtsSpan.ARG_INTEGER_PART
argument.integerPart
- The integer part of a decimal or fraction; a
non-empty string of digits with an optional
leading + or -.public TtsSpan.MeasureBuilder setFractionalPart(String fractionalPart)
TtsSpan.ARG_FRACTIONAL_PART
argument.fractionalPart
- The fractional part of a decimal; a non-empty
string of digits with an optional leading + or -.public TtsSpan.MeasureBuilder setNumerator(long numerator)
TtsSpan.ARG_NUMERATOR
.numerator
- The numerator of a fraction.public TtsSpan.MeasureBuilder setNumerator(String numerator)
TtsSpan.ARG_NUMERATOR
argument.numerator
- The numerator of a fraction; a non-empty string of
digits with an optional leading + or -.public TtsSpan.MeasureBuilder setDenominator(long denominator)
TtsSpan.ARG_DENOMINATOR
.denominator
- The denominator of a fraction.public TtsSpan.MeasureBuilder setDenominator(String denominator)
TtsSpan.ARG_DENOMINATOR
argument.denominator
- The denominator of a fraction; a non-empty string
of digits with an optional leading + or -.public TtsSpan.MeasureBuilder setUnit(String unit)
TtsSpan.ARG_UNIT
argument.unit
- The unit of the measure.TtsSpan.ARG_UNIT}