Package org.semanticweb.owlapi.model
Class AddAxiom
java.lang.Object
org.semanticweb.owlapi.model.OWLOntologyChange
org.semanticweb.owlapi.model.OWLAxiomChange
org.semanticweb.owlapi.model.AddAxiom
- All Implemented Interfaces:
Serializable
,HasSignature
Represents an ontology change where axioms should be added to an ontology.
- Since:
- 2.0.0
- Author:
- Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(OWLOntologyChangeVisitor visitor) Accepts a visitor.<O> O
accept
(OWLOntologyChangeVisitorEx<O> visitor) Accepts a visitor.boolean
Gets the data (independent of the ontology) associated with this specific change.int
hashCode()
boolean
Determines if the change will add an axiom to an ontology.toString()
Methods inherited from class org.semanticweb.owlapi.model.OWLAxiomChange
getAxiom, isAxiomChange, signature
Methods inherited from class org.semanticweb.owlapi.model.OWLOntologyChange
getAddedAxiom, getAddedOrRemovedAxiom, getChangeRecord, getOntology, getRemovedAxiom, isAxiomChange, isImportChange, isRemoveAxiom
Methods inherited from interface org.semanticweb.owlapi.model.HasSignature
getSignature, unsortedSignature
-
Constructor Details
-
AddAxiom
- Parameters:
ont
- the ontology to which the change is to be appliedaxiom
- the axiom to be added
-
-
Method Details
-
getChangeData
Description copied from class:OWLOntologyChange
Gets the data (independent of the ontology) associated with this specific change.- Specified by:
getChangeData
in classOWLOntologyChange
- Returns:
- The
OWLOntologyChangeData
associated with thisOWLOntologyChange
.
-
isAddAxiom
public boolean isAddAxiom()Description copied from class:OWLOntologyChange
Determines if the change will add an axiom to an ontology.- Overrides:
isAddAxiom
in classOWLOntologyChange
- Returns:
true
if the change is an AddAxiom change and it will add an axiom to an ontology,false
otherwise.
-
equals
-
hashCode
public int hashCode() -
accept
Description copied from class:OWLOntologyChange
Accepts a visitor.- Specified by:
accept
in classOWLOntologyChange
- Parameters:
visitor
- The visitor
-
accept
Description copied from class:OWLOntologyChange
Accepts a visitor.- Specified by:
accept
in classOWLOntologyChange
- Type Parameters:
O
- visitor return type- Parameters:
visitor
- The visitor- Returns:
- visitor value
-
toString
-
reverseChange
- Specified by:
reverseChange
in classOWLOntologyChange
- Returns:
- the reverse of this change; can be used to create undo changes.
-