uk.ac.manchester.cs.owl.owlapi
Class OWLAnnotationImpl

java.lang.Object
  extended by uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl
      extended by uk.ac.manchester.cs.owl.owlapi.OWLAnnotationImpl
All Implemented Interfaces:
java.lang.Comparable<OWLObject>, OWLAnnotation, OWLAnnotationObject, OWLAnnotationSubject, OWLObject

public class OWLAnnotationImpl
extends OWLObjectImpl
implements OWLAnnotation

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


Constructor Summary
OWLAnnotationImpl(OWLDataFactory dataFactory, OWLAnnotationProperty property, OWLAnnotationValue value, java.util.Set<? extends OWLAnnotation> annotations)
           
 
Method Summary
 void accept(OWLAnnotationObjectVisitor visitor)
           
<O> O
accept(OWLAnnotationObjectVisitorEx<O> visitor)
           
 void accept(OWLObjectVisitor visitor)
           
<O> O
accept(OWLObjectVisitorEx<O> visitor)
           
protected  int compareObjectOfSameType(OWLObject object)
           
 boolean equals(java.lang.Object obj)
           
 java.util.Set<OWLAnnotation> getAnnotations()
          Gets the annotations on this annotation
 OWLAnnotationProperty getProperty()
          Gets the property that this annotation acts along
 OWLAnnotationValue getValue()
          Gets the annotation value.
 boolean isComment()
           
 boolean isLabel()
           
 
Methods inherited from class uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl
compareSets, compareTo, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getObjectPropertiesInSignature, getOWLDataFactory, getSignature, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OWLAnnotationImpl

public OWLAnnotationImpl(OWLDataFactory dataFactory,
                         OWLAnnotationProperty property,
                         OWLAnnotationValue value,
                         java.util.Set<? extends OWLAnnotation> annotations)
Method Detail

getAnnotations

public java.util.Set<OWLAnnotation> getAnnotations()
Description copied from interface: OWLAnnotation
Gets the annotations on this annotation

Specified by:
getAnnotations in interface OWLAnnotation
Returns:
A (possibly empty) set of annotations that annotate this annotation

getProperty

public OWLAnnotationProperty getProperty()
Description copied from interface: OWLAnnotation
Gets the property that this annotation acts along

Specified by:
getProperty in interface OWLAnnotation
Returns:
The annotation property

getValue

public OWLAnnotationValue getValue()
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:
getValue in interface OWLAnnotation
Returns:
the annotation value. Annotations can either have a value of an IRI (URI), literal or anonymous individual

isComment

public boolean isComment()

isLabel

public boolean isLabel()

equals

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

compareObjectOfSameType

protected int compareObjectOfSameType(OWLObject object)
Specified by:
compareObjectOfSameType in class OWLObjectImpl

accept

public void accept(OWLObjectVisitor visitor)
Specified by:
accept in interface OWLObject

accept

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

accept

public void accept(OWLAnnotationObjectVisitor visitor)
Specified by:
accept in interface OWLAnnotation

accept

public <O> O accept(OWLAnnotationObjectVisitorEx<O> visitor)
Specified by:
accept in interface OWLAnnotation