public abstract class ImportChange extends OWLOntologyChange
Constructor and Description |
---|
ImportChange(OWLOntology ont,
OWLImportsDeclaration importDeclaration) |
Modifier and Type | Method and Description |
---|---|
OWLAxiom |
getAxiom()
If the change is an axiom change (i.e.
|
OWLImportsDeclaration |
getImportDeclaration()
Gets the import declaration that the change pertains to.
|
java.util.Set<OWLEntity> |
getSignature()
Gets the signature of this ontology change.
|
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
|
accept, accept, getChangeData, getChangeRecord, getOntology, isRemoveAxiom
public ImportChange(OWLOntology ont, OWLImportsDeclaration importDeclaration)
ont
- the ontology to which the change is to be appliedimportDeclaration
- the import declarationpublic OWLImportsDeclaration getImportDeclaration()
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()
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).