ch.uzh.ifi.attempto.acewiki.core
Interface Statement

All Known Subinterfaces:
Declaration, OWLDeclaration, OWLQuestion, OWLSentence, Question, Sentence
All Known Implementing Classes:
AbstractSentence, AbstractStatement, ACEDeclaration, ACEQuestion, ACESentence, Comment, GFDeclaration, MonolingualSentence, MonolingualStatement

public interface Statement

This interface represents a statement of a wiki article. This can be sentences in the controlled natural language or informal comments.

Author:
Tobias Kuhn

Method Summary
 Article getArticle()
          Returns the owner ontology element of this statement.
 Ontology getOntology()
          Returns the ontology this statement belongs to.
 java.lang.String getText(java.lang.String language)
          Returns the text of this statement in the given language.
 void init(Ontology ontology, Article article)
          This method is the first one to be called.
 java.lang.String serialize()
          Returns a serialization of the statement.
 

Method Detail

init

void init(Ontology ontology,
          Article article)
This method is the first one to be called. It provides the ontology and the article object. The article can be null if the statement is not assigned to an article.

Parameters:
ontology - The ontology.
article - The article.

getOntology

Ontology getOntology()
Returns the ontology this statement belongs to.

Returns:
The ontology.

getArticle

Article getArticle()
Returns the owner ontology element of this statement.

Returns:
The owner ontology element.

getText

java.lang.String getText(java.lang.String language)
Returns the text of this statement in the given language.

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

serialize

java.lang.String serialize()
Returns a serialization of the statement.

Returns:
The serialized representation of the statement.


Copyright 2008-2012, AceWiki developers