Added in API level 21

OrdinalBuilder


open class OrdinalBuilder : TtsSpan.SemioticClassBuilder<TtsSpan.OrdinalBuilder!>

A builder for TtsSpans of type TYPE_ORDINAL.

Summary

Public constructors

Creates a builder for a TtsSpan of type TYPE_ORDINAL.

Creates a TtsSpan of type TYPE_ORDINAL and sets the ARG_NUMBER argument.

Creates a TtsSpan of type TYPE_ORDINAL and sets the ARG_NUMBER argument.

Public methods
open TtsSpan.OrdinalBuilder!
setNumber(number: String!)

Sets the ARG_NUMBER argument.

open TtsSpan.OrdinalBuilder!
setNumber(number: Long)

Convenience method that converts the number to a String and sets it to the value for ARG_NUMBER.

Inherited functions
TtsSpan! build()

Returns a TtsSpan built from the parameters set by the setter methods.

C setIntArgument(arg: String!, value: Int)

Sets an argument to an int value.

C setLongArgument(arg: String!, value: Long)

Sets an argument to a long value.

C setStringArgument(arg: String!, value: String!)

Sets an argument to a string value.

C setAnimacy(animacy: String!)

Sets the animacy information for this instance.

C setCase(grammaticalCase: String!)

Sets the grammatical case information for this instance.

C setGender(gender: String!)

Sets the gender information for this instance.

C setMultiplicity(multiplicity: String!)

Sets the multiplicity information for this instance.

Public constructors

OrdinalBuilder

Added in API level 21
OrdinalBuilder()

Creates a builder for a TtsSpan of type TYPE_ORDINAL.

OrdinalBuilder

Added in API level 21
OrdinalBuilder(number: String!)

Creates a TtsSpan of type TYPE_ORDINAL and sets the ARG_NUMBER argument.

Parameters
number String!: The number to synthesize.

OrdinalBuilder

Added in API level 21
OrdinalBuilder(number: Long)

Creates a TtsSpan of type TYPE_ORDINAL and sets the ARG_NUMBER argument.

Parameters
number Long: The ordinal number to synthesize.

See Also

Public methods

setNumber

Added in API level 21
open fun setNumber(number: String!): TtsSpan.OrdinalBuilder!

Sets the ARG_NUMBER argument.

Parameters
number String!: A non-empty string of digits with an optional leading + or -.
Return
TtsSpan.OrdinalBuilder! This instance.

setNumber

Added in API level 21
open fun setNumber(number: Long): TtsSpan.OrdinalBuilder!

Convenience method that converts the number to a String and sets it to the value for ARG_NUMBER.

Parameters
number Long: The ordinal number that will be synthesized.
Return
TtsSpan.OrdinalBuilder! This instance.