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

java.lang.Object
  extended by uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl
      extended by uk.ac.manchester.cs.owl.owlapi.OWLAxiomImpl
          extended by uk.ac.manchester.cs.owl.owlapi.OWLAnnotationAssertionAxiomImpl
All Implemented Interfaces:
java.lang.Comparable<OWLObject>, OWLAnnotationAssertionAxiom, OWLAnnotationAxiom, OWLAnnotationObject, OWLAxiom, OWLObject

public class OWLAnnotationAssertionAxiomImpl
extends OWLAxiomImpl
implements OWLAnnotationAssertionAxiom

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


Constructor Summary
OWLAnnotationAssertionAxiomImpl(OWLDataFactory dataFactory, OWLAnnotationSubject subject, OWLAnnotationProperty property, OWLAnnotationValue value, java.util.Collection<? extends OWLAnnotation> annotations)
           
 
Method Summary
 void accept(OWLAxiomVisitor visitor)
           
<O> O
accept(OWLAxiomVisitorEx<O> visitor)
           
 void accept(OWLObjectVisitor visitor)
           
<O> O
accept(OWLObjectVisitorEx<O> visitor)
           
protected  int compareObjectOfSameType(OWLObject object)
           
 boolean equals(java.lang.Object obj)
           
 OWLAnnotationAssertionAxiom getAnnotatedAxiom(java.util.Set<OWLAnnotation> annotations)
          Gets a copy of this axiom that is annotated with the specified annotations.
 OWLAnnotation getAnnotation()
          Gets the combination of the annotation property and the annotation value as an OWLAnnotation object.
 AxiomType getAxiomType()
          Gets the axiom type for this axiom.
 OWLAnnotationAssertionAxiom getAxiomWithoutAnnotations()
          Gets an axiom that is structurally equivalent to this axiom without annotations.
 OWLAnnotationProperty getProperty()
          Gets the annotation property.
 OWLAnnotationSubject getSubject()
          Gets the subject of the annotation assertion.
 OWLAnnotationValue getValue()
          Gets the annotation value.
 boolean isDeprecatedIRIAssertion()
          Determines if this annotation assertion deprecates the IRI that is the subject of the annotation.
 boolean isLogicalAxiom()
          Determines if this axiom is a logical axiom.
 
Methods inherited from class uk.ac.manchester.cs.owl.owlapi.OWLAxiomImpl
equalsIgnoreAnnotations, getAnnotations, getAnnotations, getNNF, getReferencedEntities, isAnnotated, isOfType, isOfType, mergeAnnos
 
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.OWLAxiom
equalsIgnoreAnnotations, getAnnotations, getAnnotations, getNNF, isAnnotated, isOfType, isOfType
 
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
 
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

OWLAnnotationAssertionAxiomImpl

public OWLAnnotationAssertionAxiomImpl(OWLDataFactory dataFactory,
                                       OWLAnnotationSubject subject,
                                       OWLAnnotationProperty property,
                                       OWLAnnotationValue value,
                                       java.util.Collection<? extends OWLAnnotation> annotations)
Method Detail

getAxiomWithoutAnnotations

public OWLAnnotationAssertionAxiom getAxiomWithoutAnnotations()
Description copied from interface: OWLAxiom
Gets an axiom that is structurally equivalent to this axiom without annotations. This essentially returns a version of this axiom stripped of any annotations

Specified by:
getAxiomWithoutAnnotations in interface OWLAnnotationAssertionAxiom
Specified by:
getAxiomWithoutAnnotations in interface OWLAxiom
Returns:
The annotationless version of this axiom

isDeprecatedIRIAssertion

public boolean isDeprecatedIRIAssertion()
Determines if this annotation assertion deprecates the IRI that is the subject of the annotation.

Specified by:
isDeprecatedIRIAssertion in interface OWLAnnotationAssertionAxiom
Returns:
true if this annotation assertion deprecates the subject IRI of the assertion, otherwise false.
See Also:
org.semanticweb.owlapi.model.OWLAnnotation#isDeprecatedIRIAnnotation()}

getAnnotatedAxiom

public OWLAnnotationAssertionAxiom getAnnotatedAxiom(java.util.Set<OWLAnnotation> annotations)
Description copied from interface: OWLAxiom
Gets a copy of this axiom that is annotated with the specified annotations. If this axiom has any annotations on it they will be merged with the specified set of annotations. Note that this axiom will not be modified (or remove from any ontologies).

Specified by:
getAnnotatedAxiom in interface OWLAxiom
Parameters:
annotations - The annotations that will be added to existing annotations to annotate the copy of this axiom
Returns:
A copy of this axiom that has the specified annotations plus any existing annotations returned by the OWLAxiom#getAnnotations() method.

getValue

public OWLAnnotationValue getValue()
Description copied from interface: OWLAnnotationAssertionAxiom
Gets the annotation value. This is either an IRI, an OWLAnonymousIndividual or an OWLLiteral. Annotation values can be visited with an OWLAnnotationValueVisitor.

Specified by:
getValue in interface OWLAnnotationAssertionAxiom
Returns:
The annotation value.
See Also:
org.semanticweb.owlapi.model.OWLAnnotationValueVisitor}, OWLAnnotationValueVisitorEx}

getSubject

public OWLAnnotationSubject getSubject()
Description copied from interface: OWLAnnotationAssertionAxiom
Gets the subject of the annotation assertion. This is either an IRI or an OWLAnonymousIndividual.

Specified by:
getSubject in interface OWLAnnotationAssertionAxiom
Returns:
The subject of the annotation

getProperty

public OWLAnnotationProperty getProperty()
Description copied from interface: OWLAnnotationAssertionAxiom
Gets the annotation property.

Specified by:
getProperty in interface OWLAnnotationAssertionAxiom
Returns:
The annotation property.

getAnnotation

public OWLAnnotation getAnnotation()
Description copied from interface: OWLAnnotationAssertionAxiom
Gets the combination of the annotation property and the annotation value as an OWLAnnotation object.

Specified by:
getAnnotation in interface OWLAnnotationAssertionAxiom
Returns:
The annotation object that combines the property and value of this annotation.

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.

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 void accept(OWLAxiomVisitor visitor)
Specified by:
accept in interface OWLAxiom

accept

public <O> O accept(OWLAxiomVisitorEx<O> visitor)
Specified by:
accept in interface OWLAxiom

accept

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

getAxiomType

public AxiomType getAxiomType()
Description copied from interface: OWLAxiom
Gets the axiom type for this axiom.

Specified by:
getAxiomType in interface OWLAxiom
Returns:
The axiom type that corresponds to the type of this axiom.

equals

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