|
|||||||||
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 categoryName)
Creates a new basic text element containing a number. |
|
BasicTextElement(int number,
Terminal category)
Creates a new basic text element containing a number. |
|
BasicTextElement(java.lang.String categoryName)
Creates a new basic text element where the text is the name of the category. |
|
BasicTextElement(java.lang.String categoryName,
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 categoryName)
Creates a new basic text element. |
|
BasicTextElement(java.lang.String text,
java.lang.String categoryName,
boolean capitalize)
Creates a new basic text element. |
|
BasicTextElement(java.lang.String text,
Terminal category)
Creates a new basic text element. |
|
BasicTextElement(java.lang.String text,
Terminal category,
boolean capitalize)
Creates a new basic text element. |
|
BasicTextElement(Terminal category)
Creates a new basic text element where the text is the name of the category. |
|
BasicTextElement(Terminal category,
boolean capitalize)
Creates a new basic text element where the text is the name of the category. |
Method Summary | |
---|---|
void |
checkNeighborTextElements(TextElement precedingTextElement,
TextElement nextTextElement)
Checks the preceding and next text element. |
boolean |
equals(java.lang.Object obj)
|
Terminal |
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, Terminal 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 categoryName, boolean capitalize)
text
- The text.categoryName
- The name of the category.capitalize
- true if the word should be capitalized in sentence-initial position.public BasicTextElement(java.lang.String text, Terminal category)
text
- The text.category
- The category.public BasicTextElement(java.lang.String text, java.lang.String categoryName)
text
- The text.categoryName
- The name of the category.public BasicTextElement(int number, Terminal category)
number
- The number.category
- The category.public BasicTextElement(int number, java.lang.String categoryName)
number
- The number.categoryName
- The name of the category.public BasicTextElement(Terminal category, boolean capitalize)
category
- The category.capitalize
- true if the word should be capitalized in sentence-initial position.public BasicTextElement(java.lang.String categoryName, boolean capitalize)
categoryName
- The name of the category.capitalize
- true if the word should be capitalized in sentence-initial position.public BasicTextElement(Terminal category)
category
- The category.public BasicTextElement(java.lang.String categoryName)
categoryName
- The name of the category.public BasicTextElement(int number)
number
- The number.Method Detail |
---|
public Terminal 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 |