Package org.semanticweb.owlapi.model
Interface AsOWLObjectProperty
- All Known Subinterfaces:
OWLAnnotationProperty
,OWLClass
,OWLDataProperty
,OWLDataPropertyExpression
,OWLDatatype
,OWLEntity
,OWLLogicalEntity
,OWLNamedIndividual
,OWLObjectInverseOf
,OWLObjectProperty
,OWLObjectPropertyExpression
,OWLProperty
,OWLPropertyExpression
- All Known Implementing Classes:
OWL2DatatypeImpl
,OWLAnnotationPropertyImpl
,OWLClassImpl
,OWLDataPropertyImpl
,OWLDatatypeImpl
,OWLNamedIndividualImpl
,OWLObjectInverseOfImpl
,OWLObjectPropertyImpl
public interface AsOWLObjectProperty
Convert to OWLObjectProperty interface.
-
Method Summary
Modifier and TypeMethodDescriptiondefault OWLObjectProperty
A convenience method that obtains this entity as an OWLObjectProperty (in order to avoid explicit casting).default boolean
A convenience method that determines if this entity is an OWLObjectProperty.
-
Method Details
-
isOWLObjectProperty
default boolean isOWLObjectProperty()A convenience method that determines if this entity is an OWLObjectProperty.- Returns:
true
if this entity is an OWLObjectProperty, otherwisefalse
-
asOWLObjectProperty
A convenience method that obtains this entity as an OWLObjectProperty (in order to avoid explicit casting).- Returns:
- The entity as an OWLObjectProperty.
- Throws:
OWLRuntimeException
- if this entity is not an OWLObjectProperty (check with theisOWLObjectProperty()
method first).
-