org.semanticweb.kaon2.api
Interface OntologyListener

All Superinterfaces:
java.util.EventListener

public interface OntologyListener
extends java.util.EventListener

A listener for events on an ontology.


Method Summary
 void ontologyChangedDrastically(Ontology changedOntology)
          Called when the ontology has been changed in a drastic way.
 void ontologyClosed(Ontology closedOntology)
          Called when the ontology has been closed.
 void ontologyPropertyUpdated(Ontology changedOntology, Ontology sourceOntology, OntologyChangeEvent.ChangeType changeType, java.lang.String ontologyPropertyURI, java.lang.String value)
          Called when an ontology property has been added or removed.
 void ontologyUpdated(Ontology changedOntology, Ontology sourceOntology, java.util.List<OntologyChangeEvent> changes, java.util.Set<Entity> addedEntities, java.util.Set<Entity> removedEntities)
          Called when an ontology has changed.
 

Method Detail

ontologyUpdated

void ontologyUpdated(Ontology changedOntology,
                     Ontology sourceOntology,
                     java.util.List<OntologyChangeEvent> changes,
                     java.util.Set<Entity> addedEntities,
                     java.util.Set<Entity> removedEntities)
Called when an ontology has changed.

Parameters:
changedOntology - the ontology whose axioms have changed
sourceOntology - the ontology at which the axioms have changed
changes - the list of changes
addedEntities - the set of entities that were added to the model
removedEntities - the set of entities that were removed from the model

ontologyPropertyUpdated

void ontologyPropertyUpdated(Ontology changedOntology,
                             Ontology sourceOntology,
                             OntologyChangeEvent.ChangeType changeType,
                             java.lang.String ontologyPropertyURI,
                             java.lang.String value)
Called when an ontology property has been added or removed.

Parameters:
changedOntology - the ontology whose properties have changed
sourceOntology - the ontology at which the axioms have changed
changeType - the type of the changed
ontologyPropertyURI - the URI of the ontology property
value - the value of the ontology property

ontologyChangedDrastically

void ontologyChangedDrastically(Ontology changedOntology)
Called when the ontology has been changed in a drastic way. In this case the delta about the ontology changes is unavailable, and the client should process entire ontology from scratch.

Parameters:
changedOntology - the ontology

ontologyClosed

void ontologyClosed(Ontology closedOntology)
Called when the ontology has been closed.

Parameters:
closedOntology - the ontology