ch.uzh.ifi.attempto.acewiki.core.text
Interface OntologyTextElement

All Superinterfaces:
TextElement

public interface OntologyTextElement
extends TextElement

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.

Author:
Tobias Kuhn

Method Summary
 OntologyElement getOntologyElement()
          Returns the ontology element to which this text element is linked.
 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.
 
Methods inherited from interface ch.uzh.ifi.attempto.preditor.text.TextElement
checkNeighborTextElements, equals, getCategory, getText
 

Method Detail

getOntologyElement

OntologyElement getOntologyElement()
Returns the ontology element to which this text element is linked.

Returns:
The ontology element.

getWordNumber

int getWordNumber()
Returns the id of the word form of the ontology element that is used for this text element.

Returns:
The word form id.

getUnderscoredText

java.lang.String getUnderscoredText()
Returns the text of this text element in its plain form where underscores are not replaces by blanks.

Returns:
The plain text.


Copyright 2008, Attempto Group, University of Zurich (see http://attempto.ifi.uzh.ch)