Interface OWLAnnotationValue

All Superinterfaces:
Comparable<OWLObject>, HasAnnotationPropertiesInSignature, HasAnnotationValue, HasAnonymousIndividuals, HasClassesInSignature, HasComponents, HasContainsEntityInSignature, HasDataPropertiesInSignature, HasDatatypesInSignature, HasHashIndex, HasIndex, HasIndividualsInSignature, HasObjectPropertiesInSignature, HasSignature, IsAnonymous, OWLAnnotationObject, OWLObject, OWLPrimitive, Serializable
All Known Subinterfaces:
OWLAnonymousIndividual, OWLLiteral
All Known Implementing Classes:
IRI, OWLAnonymousIndividualImpl, OWLLiteralImpl, OWLLiteralImplBoolean, OWLLiteralImplDouble, OWLLiteralImplFloat, OWLLiteralImplInteger, OWLLiteralImplLong, OWLLiteralImplNoCompression, OWLLiteralImplPlain, OWLLiteralImplString

public interface OWLAnnotationValue extends OWLAnnotationObject, OWLPrimitive, HasAnnotationValue
A marker interface for annotation values, which can either be an IRI (URI), Literal or Anonymous Individual, with visitor methods.
Since:
3.0.0
Author:
Matthew Horridge, The University of Manchester, Information Management Group
See Also:
  • Method Details

    • accept

      void accept(OWLAnnotationValueVisitor visitor)
      Parameters:
      visitor - visitor to accept
    • accept

      <O> O accept(OWLAnnotationValueVisitorEx<O> visitor)
      Type Parameters:
      O - visitor return type
      Parameters:
      visitor - visitor to accept
      Returns:
      visitor value
    • asLiteral

      default Optional<OWLLiteral> asLiteral()
      Returns:
      if the value is a literal, return an optional containing it. Return Optional.absent otherwise.
    • isLiteral

      default boolean isLiteral()
      Returns:
      true if the annotation value is a literal
    • annotationValue

      default OWLAnnotationValue annotationValue()
      Specified by:
      annotationValue in interface HasAnnotationValue
      Returns:
      the annotation value itself; this method allows OWLAnnotationAssertionAxiom and OWLAnnotation to use the default methods rather than replicate the methods. For OWLAnnotationValue instances, the value returned is the object itself.