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

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

public abstract class AbstractSentence
extends AbstractStatement
implements Sentence

This class is a partial implementation of a sentence.

Author:
Tobias Kuhn

Constructor Summary
AbstractSentence()
           
 
Method Summary
 java.lang.String getText(java.lang.String language)
          Returns the text of this statement in the given language.
protected abstract  TextContainer getTextContainer(java.lang.String language)
          Returns a text container with the text of this sentence in the given language.
 boolean isImmutable()
          Returns whether the sentence can be changed or is immutable.
 boolean isIntegrated()
          Returns true if the sentence is integrated into the ontology.
 void setIntegrated(boolean integrated)
          Informs the sentence object whether it is integrated into the ontology or not.
 
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, getDetails, getTextElements, isReasonable, update
 
Methods inherited from interface ch.uzh.ifi.attempto.acewiki.core.Statement
getArticle, getOntology, init, serialize
 

Constructor Detail

AbstractSentence

public AbstractSentence()
Method Detail

isIntegrated

public boolean isIntegrated()
Description copied from interface: Sentence
Returns true if the sentence is integrated into the ontology.

Specified by:
isIntegrated in interface Sentence
Returns:
true if the sentence is integrated into the ontology.

setIntegrated

public void setIntegrated(boolean integrated)
Description copied from interface: Sentence
Informs the sentence object whether it is integrated into the ontology or not. This method should only be called from the ontology or an ontology loader.

Specified by:
setIntegrated in interface Sentence
Parameters:
integrated - true if the sentence is integrated into the ontology.

isImmutable

public boolean isImmutable()
Description copied from interface: Sentence
Returns whether the sentence can be changed or is immutable.

Specified by:
isImmutable in interface Sentence
Returns:
true if the sentence cannot be changed.

getTextContainer

protected abstract TextContainer getTextContainer(java.lang.String language)
Returns a text container with the text of this sentence in the given language.

Parameters:
language - The language.
Returns:
The text container.

getText

public java.lang.String getText(java.lang.String language)
Description copied from interface: Statement
Returns the text of this statement in the given language.

Specified by:
getText in interface Statement
Parameters:
language - The language.
Returns:
The text.


Copyright 2008-2012, AceWiki developers