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

java.lang.Object
  extended by ch.uzh.ifi.attempto.acewiki.core.ontology.Statement
      extended by ch.uzh.ifi.attempto.acewiki.core.ontology.Comment

public class Comment
extends Statement

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


Constructor Summary
Comment(java.lang.String text, OntologyElement owner)
          Creates a new comment.
 
Method Summary
 java.lang.String getText()
          This method returns the text of this statement.
static Comment load(java.lang.String serializedComment, OntologyElement owner)
          Loads a comment from a serialized form.
 
Methods inherited from class ch.uzh.ifi.attempto.acewiki.core.ontology.Statement
getOntology, getOwner, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Comment

public Comment(java.lang.String text,
               OntologyElement owner)
Creates a new comment.

Parameters:
text - The comment text.
owner - The owner ontology element.
Method Detail

load

public static Comment load(java.lang.String serializedComment,
                           OntologyElement owner)
Loads a comment from a serialized form.

Parameters:
serializedComment - The serialized form of the comment.
owner - The owner ontology element of the comment.
Returns:
The new comment object.

getText

public java.lang.String getText()
Description copied from class: Statement
This method returns the text of this statement.

Specified by:
getText in class Statement
Returns:
The text.


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