uk.ac.manchester.cs.owl
Class OWLAnnotationAxiomImpl<S extends OWLObject>

java.lang.Object
  extended by uk.ac.manchester.cs.owl.OWLObjectImpl
      extended by uk.ac.manchester.cs.owl.OWLAxiomImpl
          extended by uk.ac.manchester.cs.owl.OWLAnnotationAxiomImpl<S>
All Implemented Interfaces:
java.lang.Comparable<OWLObject>, OWLAnnotationAxiom<S>, OWLAxiom, OWLObject
Direct Known Subclasses:
OWLAxiomAnnotationAxiomImpl, OWLEntityAnnotationAxiomImpl, OWLOntologyAnnotationAxiomImpl

public abstract class OWLAnnotationAxiomImpl<S extends OWLObject>
extends OWLAxiomImpl
implements OWLAnnotationAxiom<S>

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 25-Oct-2006


Constructor Summary
OWLAnnotationAxiomImpl(OWLDataFactory dataFactory, S subject, OWLAnnotation annotation)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 OWLAnnotation getAnnotation()
          Gets the actual annotation
 S getSubject()
          Gets the subject of the annotation.
 boolean isLogicalAxiom()
          Determines if this axiom is a logical axiom.
 
Methods inherited from class uk.ac.manchester.cs.owl.OWLAxiomImpl
getAnnotationAxioms, getReferencedEntities
 
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.OWLAxiom
accept, accept, getAnnotationAxioms, getAxiomType, getReferencedEntities
 
Methods inherited from interface org.semanticweb.owl.model.OWLObject
accept, accept, getSignature
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

OWLAnnotationAxiomImpl

public OWLAnnotationAxiomImpl(OWLDataFactory dataFactory,
                              S subject,
                              OWLAnnotation annotation)
Method Detail

getSubject

public S getSubject()
Description copied from interface: OWLAnnotationAxiom
Gets the subject of the annotation.

Specified by:
getSubject in interface OWLAnnotationAxiom<S extends OWLObject>

getAnnotation

public OWLAnnotation getAnnotation()
Description copied from interface: OWLAnnotationAxiom
Gets the actual annotation

Specified by:
getAnnotation in interface OWLAnnotationAxiom<S extends OWLObject>
Returns:
The annotation (annotation URI and value).

isLogicalAxiom

public boolean isLogicalAxiom()
Description copied from interface: OWLAxiom
Determines if this axiom is a logical axiom. Logical axioms are defined to be axioms other than both declaration axioms (including imports declarations) and annotation axioms.

Specified by:
isLogicalAxiom in interface OWLAxiom
Returns:
true if the axiom is a logical axiom, false if the axiom is not a logical axiom.

equals

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