uk.ac.manchester.cs.owl
Class OWLAnnotationImpl<O extends OWLObject>

java.lang.Object
  extended by uk.ac.manchester.cs.owl.OWLObjectImpl
      extended by uk.ac.manchester.cs.owl.OWLAnnotationImpl<O>
All Implemented Interfaces:
java.lang.Comparable<OWLObject>, OWLAnnotation<O>, OWLObject
Direct Known Subclasses:
OWLConstantAnnotationImpl, OWLObjectAnnotationImpl

public abstract class OWLAnnotationImpl<O extends OWLObject>
extends OWLObjectImpl
implements OWLAnnotation<O>

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


Constructor Summary
OWLAnnotationImpl(OWLDataFactory dataFactory, java.net.URI uri, O object)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.net.URI getAnnotationURI()
          Gets the annotation URI
 O getAnnotationValue()
          Gets the annotation value.
 boolean isComment()
           
 boolean 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.OWLAnnotation
accept, accept, getAnnotationValueAsConstant, isAnnotationByConstant
 
Methods inherited from interface org.semanticweb.owl.model.OWLObject
accept, accept, getSignature
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

OWLAnnotationImpl

public OWLAnnotationImpl(OWLDataFactory dataFactory,
                         java.net.URI uri,
                         O object)
Method Detail

getAnnotationURI

public java.net.URI getAnnotationURI()
Description copied from interface: OWLAnnotation
Gets the annotation URI

Specified by:
getAnnotationURI in interface OWLAnnotation<O extends OWLObject>

getAnnotationValue

public O getAnnotationValue()
Description copied from interface: OWLAnnotation
Gets the annotation value. The type of value will depend upon the type of the annotation e.g. whether the annotation is a constant annotation, individual annotation etc.

Specified by:
getAnnotationValue in interface OWLAnnotation<O extends OWLObject>

isComment

public boolean isComment()

isLabel

public boolean isLabel()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class OWLObjectImpl