Package org.semanticweb.owlapi.change
Class SetOntologyIDData
java.lang.Object
org.semanticweb.owlapi.change.OWLOntologyChangeData
org.semanticweb.owlapi.change.SetOntologyIDData
- All Implemented Interfaces:
Serializable
,HasSignature
Represents the specific non-ontology data required by a
Instances of this class are immutable.
SetOntologyID
change. Instances of this class are immutable.
- Since:
- 3.3
- Author:
- Matthew Horridge, Stanford University, Bio-Medical Informatics Research Group
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSetOntologyIDData
(OWLOntologyID newId) Constructs aSetOntologyIDData
object that describes anSetOntologyID
change for theOWLOntologyID
object specified by thenewId
parameter. -
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.getItem()
getNewId()
Gets theOWLOntologyID
that is associated with someSetOntologyID
change.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
-
SetOntologyIDData
Constructs aSetOntologyIDData
object that describes anSetOntologyID
change for theOWLOntologyID
object specified by thenewId
parameter.- Parameters:
newId
- TheOWLOntologyID
that is the focus of some change.
-
-
Method Details
-
getNewId
Gets theOWLOntologyID
that is associated with someSetOntologyID
change.- Returns:
- The
OWLOntologyID
.
-
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.
-
getItem
- Specified by:
getItem
in classOWLOntologyChangeData
- Returns:
- the object this change is adding or removing
-