|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.uzh.ifi.attempto.preditor.text.BasicTextElement
public class BasicTextElement
This is a general purpose implementation of a text element.
Constructor Summary | |
---|---|
BasicTextElement(int number)
Creates a new basic text element containing a number which is also the name of the category. |
|
BasicTextElement(int number,
java.lang.String category)
Creates a new basic text element containing a number. |
|
BasicTextElement(java.lang.String category)
Creates a new basic text element where the text is the name of the category. |
|
BasicTextElement(java.lang.String category,
boolean capitalize)
Creates a new basic text element where the text is the name of the category. |
|
BasicTextElement(java.lang.String text,
java.lang.String category)
Creates a new basic text element. |
|
BasicTextElement(java.lang.String text,
java.lang.String category,
boolean capitalize)
Creates a new basic text element. |
|
BasicTextElement(Terminal terminal)
Creates a new basic text element on the basis of a terminal category object. |
|
BasicTextElement(Terminal terminal,
boolean capitalize)
Creates a new basic text element on the basis of a terminal category object. |
Method Summary | |
---|---|
void |
checkNeighborTextElements(TextElement precedingTextElement,
TextElement nextTextElement)
Checks the preceding and next text element. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getCategory()
Returns the grammatical category of this text element. |
java.lang.String |
getText()
Returns the text of this text element. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicTextElement(java.lang.String text, java.lang.String category, boolean capitalize)
text
- The text.category
- The category.capitalize
- true if the word should be capitalized in sentence-initial position.public BasicTextElement(java.lang.String text, java.lang.String category)
text
- The text.category
- The category.public BasicTextElement(int number, java.lang.String category)
number
- The number.category
- The category.public BasicTextElement(java.lang.String category, boolean capitalize)
category
- The category which is the same as the text.capitalize
- true if the word should be capitalized in sentence-initial position.public BasicTextElement(java.lang.String category)
category
- The category which is the same as the text.public BasicTextElement(int number)
number
- The number.public BasicTextElement(Terminal terminal, boolean capitalize)
terminal
- The terminal category object.capitalize
- true if the word should be capitalized in sentence-initial position.public BasicTextElement(Terminal terminal)
terminal
- The terminal category object.Method Detail |
---|
public java.lang.String getCategory()
TextElement
getCategory
in interface TextElement
public java.lang.String getText()
TextElement
getText
in interface TextElement
public void checkNeighborTextElements(TextElement precedingTextElement, TextElement nextTextElement)
TextElement
checkNeighborTextElements
in interface TextElement
public boolean equals(java.lang.Object obj)
equals
in interface TextElement
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |