org.semanticweb.owl.model
Class SetOntologyURI

java.lang.Object
  extended by org.semanticweb.owl.model.OWLOntologyChange
      extended by org.semanticweb.owl.model.SetOntologyURI

public class SetOntologyURI
extends OWLOntologyChange

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 12-Dec-2006

A change which sets the URI of an ontology.


Constructor Summary
SetOntologyURI(OWLOntology ont, java.net.URI newURI)
          Creates a set ontology URI change, which will set the URI of the ontology to the specified new URI.
 
Method Summary
 void accept(OWLOntologyChangeVisitor visitor)
           
 OWLAxiom getAxiom()
          If the change is an axiom change (i.e.
 java.net.URI getNewURI()
          Gets the new URI - i.e.
 java.net.URI getOriginalURI()
          Gets the original URI - i.e.
 boolean isAxiomChange()
          Determines if the change will cause the addition or removal of an axiom from an ontology.
 
Methods inherited from class org.semanticweb.owl.model.OWLOntologyChange
getOntology
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetOntologyURI

public SetOntologyURI(OWLOntology ont,
                      java.net.URI newURI)
Creates a set ontology URI change, which will set the URI of the ontology to the specified new URI.

Parameters:
ont - The ontology whose URI is to be changed
newURI - The new ontology URI
Method Detail

isAxiomChange

public boolean isAxiomChange()
Description copied from class: OWLOntologyChange
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).

getOriginalURI

public java.net.URI getOriginalURI()
Gets the original URI - i.e. the URI of the ontology before the change was applied.


getNewURI

public java.net.URI getNewURI()
Gets the new URI - i.e. the URI of the ontology after the change was applied.


accept

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