uk.ac.manchester.cs.owl.owlapi
Class OWLNaryDataRangeImpl
java.lang.Object
uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl
uk.ac.manchester.cs.owl.owlapi.OWLNaryDataRangeImpl
- All Implemented Interfaces:
- java.lang.Comparable<OWLObject>, OWLDataRange, OWLNaryDataRange, OWLObject, OWLPropertyRange, SWRLPredicate
- Direct Known Subclasses:
- OWLDataIntersectionOfImpl, OWLDataUnionOfImpl
public abstract class OWLNaryDataRangeImpl
- extends OWLObjectImpl
- implements OWLNaryDataRange
Author: Matthew Horridge
The University of Manchester
Information Management Group
Date: 17-Jan-2009
Method Summary |
OWLDatatype |
asOWLDatatype()
If this data range is a datatype then this method may be used to obtain it as a datatype (rather than
using an explicit cast). |
java.util.Set<OWLDataRange> |
getOperands()
|
boolean |
isDatatype()
Determines if this data range is a datatype (int, float, ...) |
boolean |
isTopDatatype()
Determines if this data range is the top data type. |
Methods inherited from class uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl |
compareObjectOfSameType, compareSets, compareTo, equals, 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 |
OWLNaryDataRangeImpl
protected OWLNaryDataRangeImpl(OWLDataFactory dataFactory,
java.util.Set<? extends OWLDataRange> operands)
getOperands
public java.util.Set<OWLDataRange> getOperands()
- Specified by:
getOperands
in interface OWLNaryDataRange
isTopDatatype
public boolean isTopDatatype()
- Description copied from interface:
OWLDataRange
- Determines if this data range is the top data type.
- Specified by:
isTopDatatype
in interface OWLDataRange
- Returns:
true
if this data range is the top datatype otherwise
false
isDatatype
public boolean isDatatype()
- Description copied from interface:
OWLDataRange
- Determines if this data range is a datatype (int, float, ...)
- Specified by:
isDatatype
in interface OWLDataRange
- Returns:
true
if this datarange is a datatype, or
false
if it is not a datatype and is some other
data range such as a data range restriction, data oneOf or
data complementOf.
asOWLDatatype
public OWLDatatype asOWLDatatype()
- Description copied from interface:
OWLDataRange
- If this data range is a datatype then this method may be used to obtain it as a datatype (rather than
using an explicit cast).
- Specified by:
asOWLDatatype
in interface OWLDataRange
- Returns:
- This data range as an
OWLDatatype