ch.uzh.ifi.attempto.acewiki.core
Class MonolingualSentence

java.lang.Object
  extended by ch.uzh.ifi.attempto.acewiki.core.AbstractStatement
      extended by ch.uzh.ifi.attempto.acewiki.core.AbstractSentence
          extended by ch.uzh.ifi.attempto.acewiki.core.MonolingualSentence
All Implemented Interfaces:
Sentence, Statement
Direct Known Subclasses:
ACESentence

public abstract class MonolingualSentence
extends AbstractSentence

This class represents a sentence for a monolingual AceWiki engine.

Author:
Tobias Kuhn

Constructor Summary
protected MonolingualSentence()
          Initializes a new sentence.
 
Method Summary
abstract  java.util.List<SentenceDetail> getDetails()
          Returns a list of sentence details to be shown to the user.
 java.util.List<SentenceDetail> getDetails(java.lang.String language)
          Returns a list of sentence details in the given language.
 java.lang.String getText()
          Returns the text of this sentence in the only available language.
protected abstract  TextContainer getTextContainer()
          Returns a text container with the text of this sentence in the only available language.
protected  TextContainer getTextContainer(java.lang.String language)
          Returns a text container with the text of this sentence in the given language.
abstract  java.util.List<TextElement> getTextElements()
          Returns a list of text elements that represent the tokens of this sentence.
 java.util.List<TextElement> getTextElements(java.lang.String language)
          Returns a list of text elements that represent the tokens of this sentence in the given language.
protected  TextOperator getTextOperator()
          Returns the text operator for the given language.
 
Methods inherited from class ch.uzh.ifi.attempto.acewiki.core.AbstractSentence
getText, isImmutable, isIntegrated, setIntegrated
 
Methods inherited from class ch.uzh.ifi.attempto.acewiki.core.AbstractStatement
getArticle, getDefaultLanguage, getEngine, getLanguageHandler, getOntology, getTextOperator, init, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ch.uzh.ifi.attempto.acewiki.core.Sentence
contains, isReasonable, update
 
Methods inherited from interface ch.uzh.ifi.attempto.acewiki.core.Statement
getArticle, getOntology, init, serialize
 

Constructor Detail

MonolingualSentence

protected MonolingualSentence()
Initializes a new sentence.

Method Detail

getTextElements

public abstract java.util.List<TextElement> getTextElements()
Returns a list of text elements that represent the tokens of this sentence.

Returns:
A token list.

getTextElements

public final java.util.List<TextElement> getTextElements(java.lang.String language)
Description copied from interface: Sentence
Returns a list of text elements that represent the tokens of this sentence in the given language.

Parameters:
language - The language.
Returns:
A token list.

getTextContainer

protected abstract TextContainer getTextContainer()
Returns a text container with the text of this sentence in the only available language.

Returns:
The text container.

getTextContainer

protected final TextContainer getTextContainer(java.lang.String language)
Description copied from class: AbstractSentence
Returns a text container with the text of this sentence in the given language.

Specified by:
getTextContainer in class AbstractSentence
Parameters:
language - The language.
Returns:
The text container.

getText

public java.lang.String getText()
Returns the text of this sentence in the only available language.

Returns:
The sentence text.

getDetails

public abstract java.util.List<SentenceDetail> getDetails()
Returns a list of sentence details to be shown to the user.

Returns:
A list of sentence details.

getDetails

public final java.util.List<SentenceDetail> getDetails(java.lang.String language)
Description copied from interface: Sentence
Returns a list of sentence details in the given language.

Parameters:
language - The language.
Returns:
A list of sentence details.

getTextOperator

protected TextOperator getTextOperator()
Returns the text operator for the given language.

Returns:
The text operator.


Copyright 2008-2012, AceWiki developers