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

java.lang.Object
  extended by ch.uzh.ifi.attempto.acewiki.core.ontology.Statement
Direct Known Subclasses:
Comment, Sentence

public abstract class Statement
extends java.lang.Object

This class represents a statement that can be either an ACE sentence or a comment. A statement can either have an ontology element as its owner (in this case it occurs on the article of the owner) or it can be an independent statement that has no owner.

Author:
Tobias Kuhn

Constructor Summary
protected Statement(Ontology ontology)
          Initializes a new independent statement.
protected Statement(OntologyElement owner)
          Initializes a new statement with the given ontology element as its owner.
 
Method Summary
 Ontology getOntology()
          This method returns the ontology this statement belongs to.
 OntologyElement getOwner()
          This method returns the owner ontology element of this statement.
abstract  java.lang.String getText()
          This method returns the text of this statement.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Statement

protected Statement(Ontology ontology)
Initializes a new independent statement.

Parameters:
ontology - The ontology of the new statement.

Statement

protected Statement(OntologyElement owner)
Initializes a new statement with the given ontology element as its owner.

Parameters:
owner - The ontology element that is the owner of the new statement.
Method Detail

getOntology

public Ontology getOntology()
This method returns the ontology this statement belongs to.

Returns:
The ontology.

getOwner

public OntologyElement getOwner()
This method returns the owner ontology element of this statement.

Returns:
The owner ontology element.

getText

public abstract java.lang.String getText()
This method returns the text of this statement.

Returns:
The text.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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