org.semanticweb.owlapi.model
Class OWLOntologyLoaderListener.LoadingFinishedEvent

java.lang.Object
  extended by org.semanticweb.owlapi.model.OWLOntologyLoaderListener.LoadingEvent
      extended by org.semanticweb.owlapi.model.OWLOntologyLoaderListener.LoadingFinishedEvent
Enclosing interface:
OWLOntologyLoaderListener

public static class OWLOntologyLoaderListener.LoadingFinishedEvent
extends OWLOntologyLoaderListener.LoadingEvent

Describes the situation when the loading process for an ontology has finished.


Constructor Summary
OWLOntologyLoaderListener.LoadingFinishedEvent(OWLOntologyID ontologyID, IRI documentIRI, boolean imported, OWLOntologyCreationException ex)
           
 
Method Summary
 OWLOntologyCreationException getException()
          If the ontology was not loaded successfully then this method can be used to access the exception that describes why the ontology was not loaded successfully.
 boolean isSuccessful()
          Determines if the ontology was successfully loaded.
 
Methods inherited from class org.semanticweb.owlapi.model.OWLOntologyLoaderListener.LoadingEvent
getDocumentIRI, getOntologyID, isImported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OWLOntologyLoaderListener.LoadingFinishedEvent

public OWLOntologyLoaderListener.LoadingFinishedEvent(OWLOntologyID ontologyID,
                                                      IRI documentIRI,
                                                      boolean imported,
                                                      OWLOntologyCreationException ex)
Method Detail

isSuccessful

public boolean isSuccessful()
Determines if the ontology was successfully loaded.

Returns:
true if the ontology was successfully loaded, false if the ontology was not successfully loaded. Note that an ontology being successfully loaded does not imply that any ontologies that the ontology imports were successfully loaded.

getException

public OWLOntologyCreationException getException()
If the ontology was not loaded successfully then this method can be used to access the exception that describes why the ontology was not loaded successfully.

Returns:
The exception that describes why the ontology was not loaded successfully, or null if the ontology was loaded successfully.