uk.ac.manchester.cs.owl.owlapi
Class OWLAnnotationPropertyRangeAxiomImpl
java.lang.Object
uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl
uk.ac.manchester.cs.owl.owlapi.OWLAxiomImpl
uk.ac.manchester.cs.owl.owlapi.OWLAnnotationPropertyRangeAxiomImpl
- All Implemented Interfaces:
- java.lang.Comparable<OWLObject>, OWLAnnotationAxiom, OWLAnnotationObject, OWLAnnotationPropertyRangeAxiom, OWLAxiom, OWLObject
public class OWLAnnotationPropertyRangeAxiomImpl
- extends OWLAxiomImpl
- implements OWLAnnotationPropertyRangeAxiom
Author: Matthew Horridge
The University of Manchester
Information Management Group
Date: 17-Jan-2009
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 java.lang.Comparable |
compareTo |
Methods inherited from interface java.lang.Comparable |
compareTo |
range
protected IRI range
OWLAnnotationPropertyRangeAxiomImpl
public OWLAnnotationPropertyRangeAxiomImpl(OWLDataFactory dataFactory,
OWLAnnotationProperty property,
IRI range,
java.util.Collection<? extends OWLAnnotation> annotations)
getAxiomWithoutAnnotations
public OWLAnnotationPropertyRangeAxiom 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 OWLAnnotationPropertyRangeAxiom
- Specified by:
getAxiomWithoutAnnotations
in interface OWLAxiom
- Returns:
- The annotationless version of this axiom
getAnnotatedAxiom
public OWLAnnotationPropertyRangeAxiom 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.
getProperty
public OWLAnnotationProperty getProperty()
- Description copied from interface:
OWLAnnotationPropertyRangeAxiom
- Gets the annotation property that this axiom provides a range for.
- Specified by:
getProperty
in interface OWLAnnotationPropertyRangeAxiom
- Returns:
- The annotation property
getRange
public IRI getRange()
- Description copied from interface:
OWLAnnotationPropertyRangeAxiom
- Gets the specified IRI that corresponds to the range.
- Specified by:
getRange
in interface OWLAnnotationPropertyRangeAxiom
- Returns:
- The range of the annotation property.
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.
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 <O> O accept(OWLObjectVisitorEx<O> 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
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class OWLAxiomImpl