public class SetOntologyID extends OWLOntologyChange
Constructor and Description |
---|
SetOntologyID(OWLOntology ont,
IRI ontologyIRI)
Creates a set ontology id change using the ontologyIRI, which will set
the ontology id to the new one.
|
SetOntologyID(OWLOntology ont,
OWLOntologyID ontologyID)
Creates a set ontology id change, which will set the ontology id to the
new one.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(OWLOntologyChangeVisitor visitor) |
<O> O |
accept(OWLOntologyChangeVisitorEx<O> visitor) |
boolean |
equals(java.lang.Object obj) |
OWLAxiom |
getAxiom()
If the change is an axiom change (i.e.
|
SetOntologyIDData |
getChangeData()
Gets the data (independent of the ontology) associated with this specific change.
|
OWLOntologyID |
getNewOntologyID() |
OWLOntologyID |
getOriginalOntologyID()
Gets the original ID of the ontology whose URI was changed
|
java.util.Set<OWLEntity> |
getSignature()
Gets the signature of this ontology change.
|
int |
hashCode() |
boolean |
isAddAxiom()
Determines if the change will add an axiom to an ontology.
|
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
|
java.lang.String |
toString() |
getChangeRecord, getOntology, isRemoveAxiom
public SetOntologyID(OWLOntology ont, OWLOntologyID ontologyID)
ont
- The ontology whose id is to be changedontologyID
- The ontology IDpublic SetOntologyID(OWLOntology ont, IRI ontologyIRI)
ont
- The ontology whose id is to be changedontologyIRI
- The ontology iripublic SetOntologyIDData getChangeData()
getChangeData
in class OWLOntologyChange
OWLOntologyChangeData
associated with this OWLOntologyChange
. Not null
.public java.util.Set<OWLEntity> getSignature()
getSignature
in class OWLOntologyChange
public boolean isImportChange()
isImportChange
in class OWLOntologyChange
true
if this change is an import change, otherwise false
.public boolean isAxiomChange()
OWLOntologyChange
isAxiomChange
in class OWLOntologyChange
true
if the change is an OWLAddAxiomChange
or OWLRemoveAxiomChange
otherwise false
.public boolean isAddAxiom()
OWLOntologyChange
isAddAxiom
in class OWLOntologyChange
true
if the change is an AddAxiom change and it will
add an axiom to an ontology, false
otherwise.public OWLAxiom getAxiom()
getAxiom
in class OWLOntologyChange
java.lang.UnsupportedOperationException
- If the change is not an axiom change (check
with the isAxiomChange
method first).public OWLOntologyID getOriginalOntologyID()
public OWLOntologyID getNewOntologyID()
public void accept(OWLOntologyChangeVisitor visitor)
accept
in class OWLOntologyChange
public <O> O accept(OWLOntologyChangeVisitorEx<O> visitor)
accept
in class OWLOntologyChange
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object