|
|||||||||
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 ch.uzh.ifi.attempto.acewiki.core.OntologyTextElement
public class OntologyTextElement
This class represents a text element that links to an ontology element. The text of the text elements corresponds to one of the word forms of the ontology element.
Constructor Summary | |
---|---|
OntologyTextElement(OntologyElement element,
int wordNumber)
Creates a new ontology text element. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Two text elements are equals if they share the same text. |
OntologyElement |
getOntologyElement()
Returns the ontology element to which this text element is linked. |
java.lang.String |
getOriginalText()
Returns the original text of this text element. |
java.lang.String |
getPostText()
Returns the text added to the end. |
java.lang.String |
getPreText()
Returns the text added to the front. |
java.lang.String |
getText()
Returns the text of this text element. |
java.lang.String |
getUnderscoredText()
Returns the text of this text element in its plain form where underscores are not replaces by blanks. |
int |
getWordNumber()
Returns the id of the word form of the ontology element that is used for this text element. |
void |
setPostText(java.lang.String post)
This method adds a text to the end of the word of the ontology element. |
void |
setPreText(java.lang.String pre)
This method adds a text to the front of the word of the ontology element. |
Methods inherited from class ch.uzh.ifi.attempto.base.TextElement |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OntologyTextElement(OntologyElement element, int wordNumber)
element
- The ontology element.wordNumber
- The word number.Method Detail |
---|
public java.lang.String getUnderscoredText()
public java.lang.String getText()
TextElement
getText
in class TextElement
public java.lang.String getOriginalText()
TextElement
getOriginalText
in class TextElement
public void setPreText(java.lang.String pre)
pre
- The text to be added to the front.public java.lang.String getPreText()
public void setPostText(java.lang.String post)
post
- The text to be added to the end.public java.lang.String getPostText()
public int getWordNumber()
public OntologyElement getOntologyElement()
public boolean equals(java.lang.Object obj)
TextElement
equals
in class TextElement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |