|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrita.support.RiWordRelation
public class RiWordRelation
Helper class to add words and breaks into a Relation object.
| Method Summary | |
|---|---|
void |
addBreak()
Adds a break as a feature to the last item in the list. |
void |
addWord(java.lang.String word)
Adds a word as an Item to this WordRelation object. |
static RiWordRelation |
createWordRelation(com.sun.speech.freetts.Utterance utterance,
RiTokenToWords tokenToWords)
Creates a WordRelation object with the given utterance and TokenToWords. |
com.sun.speech.freetts.Item |
getTail()
Returns the last item in this WordRelation. |
void |
setLastWord(java.lang.String word)
Sets the last Item in this WordRelation to the given word. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static RiWordRelation createWordRelation(com.sun.speech.freetts.Utterance utterance,
RiTokenToWords tokenToWords)
utterance - the Utterance from which to create a RelationtokenToWords - the TokenToWords object to use
public void addBreak()
public void addWord(java.lang.String word)
word - the word to addpublic void setLastWord(java.lang.String word)
word - the word to setpublic com.sun.speech.freetts.Item getTail()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||