Package org.semanticweb.owlapi.change
Class AddAxiomData
java.lang.Object
org.semanticweb.owlapi.change.OWLOntologyChangeData
org.semanticweb.owlapi.change.AxiomChangeData
org.semanticweb.owlapi.change.AddAxiomData
- All Implemented Interfaces:
Serializable
,HasSignature
Represents the specific non-ontology data required by an
Instances of this class are immutable.
AddAxiom
change. Instances of this class are immutable.
- Since:
- 3.3
- Author:
- Matthew Horridge, Stanford University, Bio-Medical Informatics Research Group
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAddAxiomData
(OWLAxiom axiom) Constructs anAddAxiomData
object which specifies the addition of an axiom to "some ontology". -
Method Summary
Modifier and TypeMethodDescription<O> O
accept
(OWLOntologyChangeDataVisitor<O> visitor) Accepts a visit from anOWLOntologyChangeDataVisitor
.createOntologyChange
(OWLOntology ontology) Creates anOWLOntologyChange
object that pertains to the specifiedontology
, which when applied to the specified ontology enacts the change described by this info object.Methods inherited from class org.semanticweb.owlapi.change.AxiomChangeData
getAxiom, getItem
Methods inherited from class org.semanticweb.owlapi.change.OWLOntologyChangeData
equals, hashCode, toString
Methods inherited from interface org.semanticweb.owlapi.model.HasSignature
getSignature, signature, unsortedSignature
-
Constructor Details
-
AddAxiomData
Constructs anAddAxiomData
object which specifies the addition of an axiom to "some ontology".- Parameters:
axiom
- TheOWLAxiom
being added.
-
-
Method Details
-
createOntologyChange
Description copied from class:OWLOntologyChangeData
Creates anOWLOntologyChange
object that pertains to the specifiedontology
, which when applied to the specified ontology enacts the change described by this info object.- Specified by:
createOntologyChange
in classOWLOntologyChangeData
- Parameters:
ontology
- TheOWLOntology
that the change should apply to.- Returns:
- An
OWLOntologyChange
object that applies toontology
and changesontology
in a way that is consistent with this the information held in thisOWLOntologyChangeData
object.
-
accept
Description copied from class:OWLOntologyChangeData
Accepts a visit from anOWLOntologyChangeDataVisitor
.- Specified by:
accept
in classOWLOntologyChangeData
- Type Parameters:
O
- The return type for visitor's visit methods.- Parameters:
visitor
- The visitor- Returns:
- The object returned by the visitor's visit methods.
-