|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.uzh.ifi.attempto.base.TextElement
public class TextElement
This class describes a text element (a word or a phrase) to be used by the predictive editor. Every text element contains a text and one or more grammatical categories. If a text element contains more than one category then this means that it can stand for any of these categories.
Constructor Summary | |
---|---|
protected |
TextElement()
Creates a new text element without initializing the fields of the object. |
|
TextElement(java.lang.String text)
Creates a new text element. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Two text elements are equals if they share the same text. |
java.lang.String |
getOriginalText()
Returns the original text of this text element. |
java.lang.String |
getText()
Returns the text of this text element. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TextElement(java.lang.String text)
text
- The text of the new text element.protected TextElement()
Method Detail |
---|
public java.lang.String getOriginalText()
public java.lang.String getText()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |