Interface HasDirectAddAxiom

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 HasDirectAddAxiom
Interface for an object that accepts axiom additions (typically, an OWLOntology).
Since:
4.0.0
Author:
Matthew Horridge, Stanford University, Bio-Medical Informatics Research Group
  • Method Summary

    Modifier and Type
    Method
    Description
    add(OWLAxiom axiom)
    A convenience method that adds a single axiom to an ontology.
    A convenience method that adds a single axiom to an ontology.
  • Method Details

    • addAxiom

      ChangeApplied addAxiom(OWLAxiom axiom)
      A convenience method that adds a single axiom to an ontology. The appropriate AddAxiom change object is automatically generated.
      Parameters:
      axiom - The axiom to be added
      Returns:
      ChangeApplied.SUCCESSFULLY if the axiom is added, ChangeApplied.UNSUCCESSFULLY otherwise.
      Throws:
      OWLOntologyChangeException - if there was a problem adding the axiom
    • add

      default ChangeApplied add(OWLAxiom axiom)
      A convenience method that adds a single axiom to an ontology. The appropriate AddAxiom change object is automatically generated.
      Parameters:
      axiom - The axiom to be added
      Returns:
      ChangeApplied.SUCCESSFULLY if the axiom is added, ChangeApplied.UNSUCCESSFULLY otherwise.
      Throws:
      OWLOntologyChangeException - if there was a problem adding the axiom