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

java.lang.Object
  extended by ch.uzh.ifi.attempto.acewiki.core.AbstractStatement
      extended by ch.uzh.ifi.attempto.acewiki.core.Comment
All Implemented Interfaces:
Statement

public class Comment
extends AbstractStatement

This class represents a comment that is a part of an article. A comment must have an ontology element as owner.


Constructor Summary
protected Comment(java.lang.String text)
          Creates a new comment.
 
Method Summary
 java.lang.String getText()
          Returns the (language-independent) text of this comment.
 java.lang.String getText(java.lang.String language)
          Returns the text of this statement in the given language.
 java.lang.String serialize()
          Returns a serialization of the statement.
 
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
 

Constructor Detail

Comment

protected Comment(java.lang.String text)
Creates a new comment.

Parameters:
text - The comment text.
Method Detail

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.

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

getText

public java.lang.String getText()
Returns the (language-independent) text of this comment.

Returns:
The comment text.

serialize

public java.lang.String serialize()
Description copied from interface: Statement
Returns a serialization of the statement.

Returns:
The serialized representation of the statement.


Copyright 2008-2012, AceWiki developers