Convenience interface for classes that have an annotation value referred - i.e., annotation assertion axioms, annotations and annotation values. The annotation value referred is the main annotation value, nested annotations or annotations on axioms are excluded. The purpose of these methods is providing stream friendly shortcuts to operate on literals, iris and anonymous individuals used as values for annotations.
Apply the function if and only if the annotation value is of the specified type and the predicate evaluates to true; the default value is returned if the predicate does not match or the type does not match.
Apply the function if and only if the annotation value is of the specified type and the predicate evaluates to true; the alternative supplier is executed if the predicate does not match or the type does not match (only once if both conditions do not match).
Execute the consumer if and only if the annotation value is of the specified type and the predicate evaluates to true; the alternative runnable is executed if the predicate does not match or the type does not match (only once if both conditions do not match).
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 eturned is the object itself.