uk.ac.manchester.cs.owl
Class OWLObjectAnnotationImpl
java.lang.Object
uk.ac.manchester.cs.owl.OWLObjectImpl
uk.ac.manchester.cs.owl.OWLAnnotationImpl<OWLIndividual>
uk.ac.manchester.cs.owl.OWLObjectAnnotationImpl
- All Implemented Interfaces:
- java.lang.Comparable<OWLObject>, OWLAnnotation<OWLIndividual>, OWLObject, OWLObjectAnnotation
public class OWLObjectAnnotationImpl
- extends OWLAnnotationImpl<OWLIndividual>
- implements OWLObjectAnnotation
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 19-Dec-2006
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.Comparable |
compareTo |
OWLObjectAnnotationImpl
public OWLObjectAnnotationImpl(OWLDataFactory dataFactory,
java.net.URI uri,
OWLIndividual object)
accept
public void accept(OWLObjectVisitor visitor)
- Specified by:
accept
in interface OWLObject
getAnnotationValueAsConstant
public OWLConstant getAnnotationValueAsConstant()
- Description copied from interface:
OWLAnnotation
- If this is a constant annotation (rather than an entity annotation)
then this convenience method obtains the annoation value as a constant.
Calling this method if the
isAnnotationByConstant
method
returns false
will throws an OWLRuntimeException
- Specified by:
getAnnotationValueAsConstant
in interface OWLAnnotation<OWLIndividual>
isAnnotationByConstant
public boolean isAnnotationByConstant()
- Description copied from interface:
OWLAnnotation
- Determines if the annotation value is a constant.
- Specified by:
isAnnotationByConstant
in interface OWLAnnotation<OWLIndividual>
- Returns:
true
if the annotation value is
a constant, or false
if the annotation value
is an entity (class, property, individual or datatype)
accept
public void accept(OWLAnnotationVisitor visitor)
- Specified by:
accept
in interface OWLAnnotation<OWLIndividual>
accept
public <O> O accept(OWLAnnotationVisitorEx<O> visitor)
- Specified by:
accept
in interface OWLAnnotation<OWLIndividual>
accept
public <O> O accept(OWLObjectVisitorEx<O> visitor)
- Specified by:
accept
in interface OWLObject
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class OWLAnnotationImpl<OWLIndividual>