org.semanticweb.owlapi.model
Class ImportChange

java.lang.Object
  extended by org.semanticweb.owlapi.model.OWLOntologyChange
      extended by org.semanticweb.owlapi.model.ImportChange
Direct Known Subclasses:
AddImport, RemoveImport

public class ImportChange
extends OWLOntologyChange

Author: Matthew Horridge
The University of Manchester
Information Management Group
Date: 18-Mar-2009


Constructor Summary
ImportChange(OWLOntology ont, OWLImportsDeclaration importDeclaration)
           
 
Method Summary
 void accept(OWLOntologyChangeVisitor visitor)
           
 OWLAxiom getAxiom()
          If the change is an axiom change (i.e.
 OWLImportsDeclaration getImportDeclaration()
          Gets the import declaration that the change pertains to.
 boolean isAxiomChange()
          Determines if the change will cause the addition or removal of an axiom from an ontology.
 boolean isImportChange()
          Determines if this change is an import change
 
Methods inherited from class org.semanticweb.owlapi.model.OWLOntologyChange
getOntology
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportChange

public ImportChange(OWLOntology ont,
                    OWLImportsDeclaration importDeclaration)
Method Detail

getImportDeclaration

public OWLImportsDeclaration getImportDeclaration()
Gets the import declaration that the change pertains to.

Returns:
The import declaration

isImportChange

public boolean isImportChange()
Determines if this change is an import change

Specified by:
isImportChange in class OWLOntologyChange
Returns:
true if this change is an import change, otherwise false.

isAxiomChange

public boolean isAxiomChange()
Determines if the change will cause the addition or removal of an axiom from an ontology.

Specified by:
isAxiomChange in class OWLOntologyChange
Returns:
true if the change is an OWLAddAxiomChange or OWLRemoveAxiomChange otherwise false.

getAxiom

public OWLAxiom getAxiom()
If the change is an axiom change (i.e. AddAxiom or RemoveAxiom) this method obtains the axiom.

Specified by:
getAxiom in class OWLOntologyChange
Returns:
The Axiom if this change is an axiom change
Throws:
java.lang.UnsupportedOperationException - If the change is not an axiom change (check with the isAxiomChange method first).

accept

public void accept(OWLOntologyChangeVisitor visitor)
Specified by:
accept in class OWLOntologyChange