public final class RemoveImportData extends ImportChangeData
Represents the specific non-ontology data required by a RemoveImport
change.
Instances of this class are immutable.
Constructor and Description |
---|
RemoveImportData(OWLImportsDeclaration declaration)
Constructs a
RemoveImportData object that describes a RemoveImport
change for the OWLImportsDeclaration specified by the declaration parameter. |
Modifier and Type | Method and Description |
---|---|
<O,E extends java.lang.Exception> |
accept(OWLOntologyChangeDataVisitor<O,E> visitor)
Accepts a visit from an
OWLOntologyChangeDataVisitor |
RemoveImport |
createOntologyChange(OWLOntology ontology)
Creates the
AddImport change that describes the removal of an OWLImportsDeclaration from
an OWLOntology specified by the ontology parameter. |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
getDeclaration
public RemoveImportData(OWLImportsDeclaration declaration)
RemoveImportData
object that describes a RemoveImport
change for the OWLImportsDeclaration
specified by the declaration
parameter.declaration
- The OWLImportsDeclaration
that is the focus of some change. Not null
.java.lang.NullPointerException
- if declaration
is null
.public RemoveImport createOntologyChange(OWLOntology ontology)
AddImport
change that describes the removal of an OWLImportsDeclaration
from
an OWLOntology
specified by the ontology
parameter.createOntologyChange
in class OWLOntologyChangeData
ontology
- The OWLOntology
that the change should apply to. Not null
.RemoveImport
change for the OWLOntology
specified by
ontology
and the
OWLImportsDeclaration
associated with this ImportChangeData
object.java.lang.NullPointerException
- if ontology
is null
.public <O,E extends java.lang.Exception> O accept(OWLOntologyChangeDataVisitor<O,E> visitor) throws E extends java.lang.Exception
OWLOntologyChangeData
OWLOntologyChangeDataVisitor
accept
in class OWLOntologyChangeData
O
- The return type for visitor's visit methods.E
- The exception type for exceptions thrown by the visitor's visit methods.visitor
- The visitorE
- The exception thrown by the visitor's visit methods.E extends java.lang.Exception
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object