public class OWLAnnotationImpl extends OWLObjectImpl implements OWLAnnotation
Constructor and Description |
---|
OWLAnnotationImpl(OWLAnnotationProperty property,
OWLAnnotationValue value,
java.util.Set<? extends OWLAnnotation> annotations) |
Modifier and Type | Method and Description |
---|---|
void |
accept(OWLAnnotationObjectVisitor visitor) |
<O> O |
accept(OWLAnnotationObjectVisitorEx<O> visitor) |
void |
accept(OWLObjectVisitor visitor) |
<O> O |
accept(OWLObjectVisitorEx<O> visitor) |
protected int |
compareObjectOfSameType(OWLObject object) |
boolean |
equals(java.lang.Object obj) |
OWLAnnotation |
getAnnotatedAnnotation(java.util.Set<OWLAnnotation> annotationsToAdd)
Gets an OWLAnnotation which is a copy of this annotation but which has the specified annotations.
|
java.util.Set<OWLAnnotation> |
getAnnotations()
Gets the annotations on this annotation
|
OWLAnnotationProperty |
getProperty()
Gets the property that this annotation acts along
|
OWLAnnotationValue |
getValue()
Gets the annotation value.
|
boolean |
isComment()
Deprecated.
|
boolean |
isDeprecatedIRIAnnotation()
Determines if this annotation is an annotation used to deprecate an IRI.
|
boolean |
isLabel()
Deprecated.
|
compareLists, compareSets, compareTo, getAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getOWLDataFactory, getSignature, hashCode, isBottomEntity, isTopEntity, setOWLDataFactory, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, isBottomEntity, isTopEntity
public OWLAnnotationImpl(OWLAnnotationProperty property, OWLAnnotationValue value, java.util.Set<? extends OWLAnnotation> annotations)
public java.util.Set<OWLAnnotation> getAnnotations()
OWLAnnotation
getAnnotations
in interface OWLAnnotation
public OWLAnnotationProperty getProperty()
OWLAnnotation
getProperty
in interface OWLAnnotation
public OWLAnnotationValue getValue()
OWLAnnotation
OWLLiteral
,
an IRI
or an OWLAnonymousIndividual
.getValue
in interface OWLAnnotation
OWLAnnotationValueVisitor
,
OWLAnnotationValueVisitorEx
public OWLAnnotation getAnnotatedAnnotation(java.util.Set<OWLAnnotation> annotationsToAdd)
OWLAnnotation
getAnnotatedAnnotation
in interface OWLAnnotation
annotationsToAdd
- The annotations@Deprecated public boolean isComment()
@Deprecated public boolean isLabel()
public boolean isDeprecatedIRIAnnotation()
owl:deprecated
and the value of the annotation is "true"^^xsd:boolean
isDeprecatedIRIAnnotation
in interface OWLAnnotation
true
if this annotation is an annotation that can be used to deprecate an IRI, otherwise
false
.public boolean equals(java.lang.Object obj)
equals
in class OWLObjectImpl
protected int compareObjectOfSameType(OWLObject object)
compareObjectOfSameType
in class OWLObjectImpl
public void accept(OWLObjectVisitor visitor)
public <O> O accept(OWLObjectVisitorEx<O> visitor)
public void accept(OWLAnnotationObjectVisitor visitor)
accept
in interface OWLAnnotation
public <O> O accept(OWLAnnotationObjectVisitorEx<O> visitor)
accept
in interface OWLAnnotation