Interface HasApplyDirectChange

All Known Subinterfaces:
OWLMutableOntology, OWLOntology
All Known Implementing Classes:
ConcurrentOWLOntologyImpl, OWLImmutableOntologyImpl, OWLOntologyImpl
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface HasApplyDirectChange
Since:
3.5
Author:
Matthew Horridge, Stanford University, Bio-Medical Informatics Research Group
  • Method Details

    • applyDirectChange

      ChangeApplied applyDirectChange(OWLOntologyChange change)
      A convenience method that applies just one change to this ontology. Note: ontology ID changes should not be passed directly to this method but applied through OWLOntologyManager. This is because the manager needs to update its internal structures for id changes.
      Parameters:
      change - The change to be applied
      Returns:
      ChangeApplied.SUCCESSFULLY if the change is applied with success, ChangeApplied.UNSUCCESSFULLY otherwise.
      Throws:
      OWLOntologyChangeException - If the change could not be applied. See subclasses of ontology change exception for more specific details.
      OWLOntologyRenameException - If one or more of the changes is an instance of SetOntologyID where the new OWLOntologyID already belongs to an ontology managed by this manager.