org.semanticweb.owlapi.util
Class OWLEntityCollectingOntologyChangeListener

java.lang.Object
  extended by org.semanticweb.owlapi.util.OWLEntityCollectingOntologyChangeListener
All Implemented Interfaces:
OWLOntologyChangeListener

public abstract class OWLEntityCollectingOntologyChangeListener
extends java.lang.Object
implements OWLOntologyChangeListener

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 26-Feb-2007

A convenience class which is an ontology change listener which collects the entities which are referenced in a set of ontology changes.


Constructor Summary
OWLEntityCollectingOntologyChangeListener()
           
 
Method Summary
 java.util.Set<OWLEntity> getEntities()
          Gets the entities which were referenced in the last change set.
abstract  void ontologiesChanged()
          Called when a set of changes have been applied.
 void ontologiesChanged(java.util.List<? extends OWLOntologyChange> changes)
          Called when some changes have been applied to various ontologies.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OWLEntityCollectingOntologyChangeListener

public OWLEntityCollectingOntologyChangeListener()
Method Detail

ontologiesChanged

public void ontologiesChanged(java.util.List<? extends OWLOntologyChange> changes)
                       throws OWLException
Description copied from interface: OWLOntologyChangeListener
Called when some changes have been applied to various ontologies. These may be an axiom added or an axiom removed changes.

Specified by:
ontologiesChanged in interface OWLOntologyChangeListener
Parameters:
changes - A list of changes that have occurred. Each change may be examined to determine which ontology it was applied to.
Throws:
OWLException

ontologiesChanged

public abstract void ontologiesChanged()
                                throws OWLException
Called when a set of changes have been applied.

Throws:
OWLException

getEntities

public java.util.Set<OWLEntity> getEntities()
Gets the entities which were referenced in the last change set.