public class AddAxiom extends OWLAxiomChange
Constructor and Description |
---|
AddAxiom(OWLOntology ont,
OWLAxiom axiom) |
Modifier and Type | Method and Description |
---|---|
void |
accept(OWLOntologyChangeVisitor visitor) |
<O> O |
accept(OWLOntologyChangeVisitorEx<O> visitor) |
boolean |
equals(java.lang.Object obj) |
AddAxiomData |
getChangeData()
Gets the data (independent of the ontology) associated with this specific change.
|
int |
hashCode() |
boolean |
isAddAxiom()
Determines if the change will add an axiom to an ontology.
|
java.lang.String |
toString() |
getAxiom, getEntities, getSignature, isAxiomChange, isImportChange
getChangeRecord, getOntology, isRemoveAxiom
public AddAxiom(OWLOntology ont, OWLAxiom axiom)
ont
- the ontology to which the change is to be appliedaxiom
- the axiom to be addedpublic AddAxiomData getChangeData()
getChangeData
in class OWLOntologyChange
OWLOntologyChangeData
associated with this OWLOntologyChange
. Not null
.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 boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
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