/** * Creates an {@link OWLOntologyChange} from the {@link OWLOntologyID} and * {@link OWLOntologyChangeData} associated with this * {@code OWLOntologyChangeRecord} object. The {@link OWLOntology} that is * the target of the resulting {@link OWLOntologyChange} is derived from an * {@link OWLOntologyManager}. The manager <i>must</i> contain an ontology * that has an {@link OWLOntologyID} which is equal to the * {@link OWLOntologyID} associated with this * {@code OWLOntologyChangeRecord} object. * * @param manager The manager which will be used to obtain a reference to an {@link OWLOntology} * object having the same {@link OWLOntologyID} as the {@link OWLOntologyID} associated with * this {@code OWLOntologyChangeRecord}. * @return The {@link OWLOntologyChange} object that is derived from this record's {@link * OWLOntologyID} and {@link OWLOntologyChangeData}. The specific concrete subclass of the * returned {@link OWLOntologyChange} will depend upon the specific concrete subclass of the * {@link OWLOntologyChangeData} associated with this {@code OWLOntologyChangeRecord}. * @throws UnknownOWLOntologyException if the specified manager does not contain an ontology * which has an {@link OWLOntologyID} equal to the {@link OWLOntologyID} associated with this * {@code OWLOntologyChangeRecord}. */ public OWLOntologyChange createOntologyChange(OWLOntologyManager manager) { OWLOntology ontology = manager.getOntology(ontologyID); if (ontology == null) { throw new UnknownOWLOntologyException(ontologyID); } return data.createOntologyChange(ontology); }
/** * Creates an {@link OWLOntologyChange} from the {@link OWLOntologyID} and * {@link OWLOntologyChangeData} associated with this * {@code OWLOntologyChangeRecord} object. The {@link OWLOntology} that is * the target of the resulting {@link OWLOntologyChange} is derived from an * {@link OWLOntologyManager}. The manager <i>must</i> contain an ontology * that has an {@link OWLOntologyID} which is equal to the * {@link OWLOntologyID} associated with this * {@code OWLOntologyChangeRecord} object. * * @param manager The manager which will be used to obtain a reference to an {@link OWLOntology} * object having the same {@link OWLOntologyID} as the {@link OWLOntologyID} associated with * this {@code OWLOntologyChangeRecord}. * @return The {@link OWLOntologyChange} object that is derived from this record's {@link * OWLOntologyID} and {@link OWLOntologyChangeData}. The specific concrete subclass of the * returned {@link OWLOntologyChange} will depend upon the specific concrete subclass of the * {@link OWLOntologyChangeData} associated with this {@code OWLOntologyChangeRecord}. * @throws UnknownOWLOntologyException if the specified manager does not contain an ontology * which has an {@link OWLOntologyID} equal to the {@link OWLOntologyID} associated with this * {@code OWLOntologyChangeRecord}. */ public OWLOntologyChange createOntologyChange(OWLOntologyManager manager) { OWLOntology ontology = manager.getOntology(ontologyID); if (ontology == null) { throw new UnknownOWLOntologyException(ontologyID); } return data.createOntologyChange(ontology); }
/** * Creates an {@link OWLOntologyChange} from the {@link OWLOntologyID} and * {@link OWLOntologyChangeData} associated with this * {@code OWLOntologyChangeRecord} object. The {@link OWLOntology} that is * the target of the resulting {@link OWLOntologyChange} is derived from an * {@link OWLOntologyManager}. The manager <i>must</i> contain an ontology * that has an {@link OWLOntologyID} which is equal to the * {@link OWLOntologyID} associated with this * {@code OWLOntologyChangeRecord} object. * * @param manager The manager which will be used to obtain a reference to an {@link OWLOntology} * object having the same {@link OWLOntologyID} as the {@link OWLOntologyID} associated with * this {@code OWLOntologyChangeRecord}. * @return The {@link OWLOntologyChange} object that is derived from this record's {@link * OWLOntologyID} and {@link OWLOntologyChangeData}. The specific concrete subclass of the * returned {@link OWLOntologyChange} will depend upon the specific concrete subclass of the * {@link OWLOntologyChangeData} associated with this {@code OWLOntologyChangeRecord}. * @throws UnknownOWLOntologyException if the specified manager does not contain an ontology * which has an {@link OWLOntologyID} equal to the {@link OWLOntologyID} associated with this * {@code OWLOntologyChangeRecord}. */ public OWLOntologyChange createOntologyChange(OWLOntologyManager manager) { OWLOntology ontology = manager.getOntology(ontologyID); if (ontology == null) { throw new UnknownOWLOntologyException(ontologyID); } return data.createOntologyChange(ontology); }