org.semanticweb.owl.model
Interface OWLConstantAnnotation

All Superinterfaces:
java.lang.Comparable<OWLObject>, OWLAnnotation<OWLConstant>, OWLObject
All Known Subinterfaces:
OWLCommentAnnotation, OWLLabelAnnotation

public interface OWLConstantAnnotation
extends OWLAnnotation<OWLConstant>

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 19-Dec-2006

Represents an annotation which has a constant (i.e. typed or untyped literal) as its value.


Method Summary
 boolean isComment()
          Determines if the specified annotation is a comment annotation.
 boolean isLabel()
          Determines if the specified annotation is a label annotation.
 
Methods inherited from interface org.semanticweb.owl.model.OWLAnnotation
accept, accept, getAnnotationURI, getAnnotationValue, getAnnotationValueAsConstant, isAnnotationByConstant
 
Methods inherited from interface org.semanticweb.owl.model.OWLObject
accept, accept
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

isLabel

boolean isLabel()
Determines if the specified annotation is a label annotation.

Returns:
true if the annotation is a label annoation, and can be cast to OWLLabelAnnotation, otherwise false. Note that this method will return false for annotations which aren't "syntactically" label annotations but which have an rdfs:label URI (see the OWL 1.1 Functional specification for more details).

isComment

boolean isComment()
Determines if the specified annotation is a comment annotation.

Returns:
true if the annotation is a comment annoation, and can be cast to OWLCommentAnnotation, otherwise false. Note that this method will return false for annotations which aren't "syntactically" comment annotations but which have an rdfs:comment URI (see the OWL 1.1 Functional specification for more details).