TtsSpan.SemioticClassBuilder


public static class TtsSpan.SemioticClassBuilder
extends Builder<C extends SemioticClassBuilder<?>>

java.lang.Object
   ↳ android.text.style.TtsSpan.Builder<C extends android.text.style.TtsSpan.SemioticClassBuilder<?>>
     ↳ android.text.style.TtsSpan.SemioticClassBuilder<C extends android.text.style.TtsSpan.SemioticClassBuilder<?>>


A builder for TtsSpans, has setters for morphosyntactic features. This builder can be used directly, but the more specific subclasses of this builder like TtsSpan.TextBuilder and TtsSpan.CardinalBuilder are likely more useful.

Summary

Public constructors

SemioticClassBuilder(String type)

Public methods

C setAnimacy(String animacy)

Sets the animacy information for this instance.

C setCase(String grammaticalCase)

Sets the grammatical case information for this instance.

C setGender(String gender)

Sets the gender information for this instance.

C setMultiplicity(String multiplicity)

Sets the multiplicity information for this instance.

Inherited methods

TtsSpan build()

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

C setIntArgument(String arg, int value)

Sets an argument to an int value.

C setLongArgument(String arg, long value)

Sets an argument to a long value.

C setStringArgument(String arg, String value)

Sets an argument to a string value.

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Public constructors

SemioticClassBuilder

Added in API level 21
public SemioticClassBuilder (String type)

Parameters
type String

Public methods

setAnimacy

Added in API level 21
public C setAnimacy (String animacy)

Sets the animacy information for this instance.

Parameters
animacy String: Can be any of TtsSpan.ANIMACY_ANIMATE and TtsSpan.ANIMACY_INANIMATE.

Returns
C This instance.

setCase

Added in API level 21
public C setCase (String grammaticalCase)

Sets the grammatical case information for this instance.

Returns
C This instance.

setGender

Added in API level 21
public C setGender (String gender)

Sets the gender information for this instance.

Parameters
gender String: Can any of TtsSpan.GENDER_NEUTRAL, TtsSpan.GENDER_MALE and TtsSpan.GENDER_FEMALE.

Returns
C This instance.

setMultiplicity

Added in API level 21
public C setMultiplicity (String multiplicity)

Sets the multiplicity information for this instance.

Parameters
multiplicity String: Can be any of TtsSpan.MULTIPLICITY_SINGLE, TtsSpan.MULTIPLICITY_DUAL and TtsSpan.MULTIPLICITY_PLURAL.

Returns
C This instance.