uk.ac.manchester.cs.owl
Class OWLLabelAnnotationImpl

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.OWLLabelAnnotationImpl
All Implemented Interfaces:
java.lang.Comparable<OWLObject>, OWLAnnotation<OWLConstant>, OWLConstantAnnotation, OWLLabelAnnotation, OWLObject

public class OWLLabelAnnotationImpl
extends OWLConstantAnnotationImpl
implements OWLLabelAnnotation

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


Constructor Summary
OWLLabelAnnotationImpl(OWLDataFactory dataFactory, OWLConstant object)
           
 
Method Summary
 void accept(OWLAnnotationVisitor visitor)
           
<O> O
accept(OWLAnnotationVisitorEx<O> visitor)
           
<O> O
accept(OWLObjectVisitorEx<O> visitor)
           
 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 class uk.ac.manchester.cs.owl.OWLConstantAnnotationImpl
accept, equals, getAnnotationValueAsConstant, isAnnotationByConstant
 
Methods inherited from class uk.ac.manchester.cs.owl.OWLAnnotationImpl
getAnnotationURI, getAnnotationValue
 
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.OWLAnnotation
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

OWLLabelAnnotationImpl

public OWLLabelAnnotationImpl(OWLDataFactory dataFactory,
                              OWLConstant object)
Method Detail

accept

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

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).

isLabel

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

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

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