org.semanticweb.owlapi.model
Interface OWLDatatype

All Superinterfaces:
java.lang.Comparable<OWLObject>, OWLDataRange, OWLEntity, OWLLogicalEntity, OWLNamedObject, OWLObject, OWLPropertyRange, SWRLPredicate
All Known Implementing Classes:
OWLDatatypeImpl

public interface OWLDatatype
extends OWLDataRange, OWLLogicalEntity, OWLNamedObject

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group Date: 24-Oct-2006

Represents a Datatype (named data range) in the OWL 2 Specification.


Method Summary
 OWL2Datatype getBuiltInDatatype()
          Gets the built in datatype information if this datatype is a built in datatype.
 boolean isBoolean()
          Determines if this datatype has the IRI xsd:boolean
 boolean isDouble()
          Determines if this datatype has the IRI xsd:double
 boolean isFloat()
          Determines if this datatype has the IRI xsd:float
 boolean isInteger()
          Determines if this datatype has the IRI xsd:integer
 boolean isRDFPlainLiteral()
          Determines if this datatype has the IRI rdf:PlainLiteral
 boolean isString()
          Determines if this datatype has the IRI xsd:string
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLDataRange
accept, accept, accept, accept, asOWLDatatype, getDataRangeType, isDatatype, isTopDatatype
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLEntity
accept, accept, asOWLAnnotationProperty, asOWLClass, asOWLDataProperty, asOWLDatatype, asOWLNamedIndividual, asOWLObjectProperty, getAnnotationAssertionAxioms, getAnnotations, getAnnotations, getEntityType, getOWLEntity, getReferencingAxioms, getReferencingAxioms, isBuiltIn, isOWLAnnotationProperty, isOWLClass, isOWLDataProperty, isOWLDatatype, isOWLNamedIndividual, isOWLObjectProperty, isType, toStringID
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLNamedObject
accept, getIRI
 

Method Detail

getBuiltInDatatype

OWL2Datatype getBuiltInDatatype()
Gets the built in datatype information if this datatype is a built in datatype. This method should only be called if the isBuiltIn() method returns true

Returns:
The OWLDatatypeVocabulary that describes this built in datatype
Throws:
OWLRuntimeException - if this datatype is not a built in datatype.

isString

boolean isString()
Determines if this datatype has the IRI xsd:string

Returns:
true if this datatype has the IRI xsd:string, otherwise false.

isInteger

boolean isInteger()
Determines if this datatype has the IRI xsd:integer

Returns:
true if this datatype has the IRI xsd:integer, otherwise false.

isFloat

boolean isFloat()
Determines if this datatype has the IRI xsd:float

Returns:
true if this datatype has the IRI xsd:float, otherwise false.

isDouble

boolean isDouble()
Determines if this datatype has the IRI xsd:double

Returns:
true if this datatype has the IRI xsd:double, otherwise false.

isBoolean

boolean isBoolean()
Determines if this datatype has the IRI xsd:boolean

Returns:
true if this datatype has the IRI xsd:boolean, otherwise false.

isRDFPlainLiteral

boolean isRDFPlainLiteral()
Determines if this datatype has the IRI rdf:PlainLiteral

Returns:
true if this datatype has the IRI rdf:PlainLiteral otherwise false