uk.ac.manchester.cs.owl
Class OWLCommentAnnotationImpl

java.lang.Object
  extended by uk.ac.manchester.cs.owl.OWLObjectImpl
      extended by uk.ac.manchester.cs.owl.OWLAnnotationImpl<OWLConstant>
          extended by uk.ac.manchester.cs.owl.OWLConstantAnnotationImpl
              extended by uk.ac.manchester.cs.owl.OWLCommentAnnotationImpl
All Implemented Interfaces:
java.lang.Comparable<OWLObject>, OWLAnnotation<OWLConstant>, OWLCommentAnnotation, OWLConstantAnnotation, OWLObject

public class OWLCommentAnnotationImpl
extends OWLConstantAnnotationImpl
implements OWLCommentAnnotation

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


Constructor Summary
OWLCommentAnnotationImpl(OWLDataFactory dataFactory, OWLConstant object)
           
 
Method Summary
<O> O
accept(OWLAnnotationVisitorEx<O> visitor)
           
<O> O
accept(OWLObjectVisitorEx<O> visitor)
           
 boolean isComment()
          Determines if the specified annotation is a comment annotation.
 
Methods inherited from class uk.ac.manchester.cs.owl.OWLConstantAnnotationImpl
accept, accept, equals, getAnnotationValueAsConstant, isAnnotationByConstant
 
Methods inherited from class uk.ac.manchester.cs.owl.OWLAnnotationImpl
getAnnotationURI, getAnnotationValue, isLabel
 
Methods inherited from class uk.ac.manchester.cs.owl.OWLObjectImpl
compareTo, getOWLDataFactory, getSignature, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.semanticweb.owl.model.OWLConstantAnnotation
isLabel
 
Methods inherited from interface org.semanticweb.owl.model.OWLAnnotation
accept, getAnnotationURI, getAnnotationValue, getAnnotationValueAsConstant, isAnnotationByConstant
 
Methods inherited from interface org.semanticweb.owl.model.OWLObject
accept, getSignature
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

OWLCommentAnnotationImpl

public OWLCommentAnnotationImpl(OWLDataFactory dataFactory,
                                OWLConstant object)
Method Detail

isComment

public boolean isComment()
Description copied from interface: OWLConstantAnnotation
Determines if the specified annotation is a comment annotation.

Specified by:
isComment in interface OWLConstantAnnotation
Overrides:
isComment in class OWLAnnotationImpl<OWLConstant>
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).

accept

public <O> O accept(OWLAnnotationVisitorEx<O> visitor)
Specified by:
accept in interface OWLAnnotation<OWLConstant>
Overrides:
accept in class OWLConstantAnnotationImpl

accept

public <O> O accept(OWLObjectVisitorEx<O> visitor)
Specified by:
accept in interface OWLObject
Overrides:
accept in class OWLConstantAnnotationImpl