|
|||||||||
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
ch.uzh.ifi.attempto.preditor.text.NounTextElement
public class NounTextElement
This class represents referenceable text elements that contain a noun. One can refer to such
text elements with "the" plus the respective noun, e.g. "the customer" in the case of the noun
"customer". If the text element is followed by a VarTextElement
then the variable is
also included in the reference text, e.g. "the customer X" if the variable has the name "X".
Constructor Summary | |
---|---|
NounTextElement(java.lang.String noun,
java.lang.String categoryName)
Creates a new noun text element. |
|
NounTextElement(java.lang.String noun,
Terminal category)
Creates a new noun text element. |
Method Summary | |
---|---|
void |
checkNeighborTextElements(TextElement precedingTextElement,
TextElement nextTextElement)
Checks the preceding and next text element. |
java.lang.String |
getReferenceText()
This method should return the text how a reference to this text element has to look like. |
Methods inherited from class ch.uzh.ifi.attempto.preditor.text.BasicTextElement |
---|
equals, getCategory, getText |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ch.uzh.ifi.attempto.preditor.text.TextElement |
---|
equals, getCategory, getText |
Constructor Detail |
---|
public NounTextElement(java.lang.String noun, Terminal category)
noun
- The noun.category
- The category.public NounTextElement(java.lang.String noun, java.lang.String categoryName)
noun
- The noun.categoryName
- The name of the category.Method Detail |
---|
public void checkNeighborTextElements(TextElement precedingTextElement, TextElement nextTextElement)
TextElement
checkNeighborTextElements
in interface TextElement
checkNeighborTextElements
in class BasicTextElement
public java.lang.String getReferenceText()
RefableTextElement
getReferenceText
in interface RefableTextElement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |