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, 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 isDeprecatedIRIAnnotation()
          Determines if this annotation is an annotation used to deprecate an IRI.
 boolean isLabel()
           
 
Methods inherited from class uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl
compareSets, compareTo, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getOWLDataFactory, getSignature, hashCode, isBottomEntity, isTopEntity, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLObject
getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, isBottomEntity, isTopEntity
 
Methods inherited from interface java.lang.Comparable
compareTo
 

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 an OWLLiteral, an IRI or an OWLAnonymousIndividual.

Specified by:
getValue in interface OWLAnnotation
Returns:
The annotation value.
See Also:
OWLAnnotationValueVisitor, OWLAnnotationValueVisitorEx

isComment

public boolean isComment()

isLabel

public boolean isLabel()

isDeprecatedIRIAnnotation

public boolean isDeprecatedIRIAnnotation()
Determines if this annotation is an annotation used to deprecate an IRI. This is the case if the annotation property has an IRI of owl:deprecated and the value of the annotation is "true"^^xsd:boolean

Specified by:
isDeprecatedIRIAnnotation in interface OWLAnnotation
Returns:
true if this annotation is an annotation that can be used to deprecate an IRI, otherwise false.

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