uk.ac.manchester.cs.owl
Class OWLConstantAnnotationImpl
java.lang.Object
uk.ac.manchester.cs.owl.OWLObjectImpl
uk.ac.manchester.cs.owl.OWLAnnotationImpl<OWLConstant>
uk.ac.manchester.cs.owl.OWLConstantAnnotationImpl
- All Implemented Interfaces:
- java.lang.Comparable<OWLObject>, OWLAnnotation<OWLConstant>, OWLConstantAnnotation, OWLObject
- Direct Known Subclasses:
- OWLCommentAnnotationImpl, OWLLabelAnnotationImpl
public class OWLConstantAnnotationImpl
- extends OWLAnnotationImpl<OWLConstant>
- implements OWLConstantAnnotation
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 |
OWLConstantAnnotationImpl
public OWLConstantAnnotationImpl(OWLDataFactory dataFactory,
java.net.URI uri,
OWLConstant object)
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<OWLConstant>
isAnnotationByConstant
public boolean isAnnotationByConstant()
- Description copied from interface:
OWLAnnotation
- Determines if the annotation value is a constant.
- Specified by:
isAnnotationByConstant in interface OWLAnnotation<OWLConstant>
- 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(OWLObjectVisitor visitor)
- Specified by:
accept in interface OWLObject
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class OWLAnnotationImpl<OWLConstant>
accept
public void accept(OWLAnnotationVisitor visitor)
- Specified by:
accept in interface OWLAnnotation<OWLConstant>
accept
public <O> O accept(OWLAnnotationVisitorEx<O> visitor)
- Specified by:
accept in interface OWLAnnotation<OWLConstant>
accept
public <O> O accept(OWLObjectVisitorEx<O> visitor)
- Specified by:
accept in interface OWLObject