org.semanticweb.owlapi.vocab
Enum OWL2Datatype

java.lang.Object
  extended by java.lang.Enum<OWL2Datatype>
      extended by org.semanticweb.owlapi.vocab.OWL2Datatype
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OWL2Datatype>

public enum OWL2Datatype
extends java.lang.Enum<OWL2Datatype>

Author: Matthew Horridge
The University Of Manchester
Information Management Group
Date: 11-Nov-2008

An enumeration of the datatypes in the OWL 2 specification. These are the datatypes in the OWL 2 datatype map.


Nested Class Summary
static class OWL2Datatype.Category
           
static class OWL2Datatype.WhiteSpaceNormalisation
           
 
Enum Constant Summary
OWL_RATIONAL
           
OWL_REAL
           
RDF_XML_LITERAL
           
XSD_ANY_URI
           
XSD_BASE_64_BINARY
           
XSD_BOOLEAN
           
XSD_BYTE
           
XSD_DATE_TIME
           
XSD_DATE_TIME_STAMP
           
XSD_DECIMAL
           
XSD_DOUBLE
           
XSD_FLOAT
           
XSD_HEX_BINARY
           
XSD_INT
           
XSD_INTEGER
           
XSD_LANGUAGE
           
XSD_LONG
           
XSD_NAME
           
XSD_NCNAME
           
XSD_NEGATIVE_INTEGER
           
XSD_NMTOKEN
           
XSD_NON_NEGATIVE_INTEGER
           
XSD_NON_POSITIVE_INTEGER
           
XSD_NORMALIZED_STRING
           
XSD_POSITIVE_INTEGER
           
XSD_SHORT
           
XSD_STRING
           
XSD_TOKEN
           
XSD_UNSIGNED_BYTE
           
XSD_UNSIGNED_INT
           
XSD_UNSIGNED_LONG
           
XSD_UNSIGNED_SHORT
           
 
Method Summary
 OWL2Datatype.Category getCategory()
          Gets the category for this datatype
static OWL2Datatype getDatatype(IRI datatype)
          Given a URI that identifies an OWLDatatype, this method obtains the corresponding OWLDatatypeVocabulary
static java.util.Set<IRI> getDatatypeIRIs()
          Gets all of the built in datatype URIs
 java.util.Collection<OWLFacet> getFacets()
          Gets the facets that are allowed for facet restrictions of this datatype
 IRI getIRI()
          Gets the IRI of this datatype
 java.util.regex.Pattern getPattern()
          Gets the Pattern that specifies the regular expression for a datatype
 java.lang.String getShortName()
          Gets the short human readable name for this datatype
 java.net.URI getURI()
          Gets the URI of this datatype
static boolean isBuiltIn(IRI datatypeIRI)
          Determines if the specified IRI identifies a built in datatype.
 boolean isFinite()
          Determines whether or not this datatype is finite.
 boolean isInLexicalSpace(java.lang.String s)
          Determines if the specified string is the lexical space of this datatype
 boolean isNumeric()
          Determines if this datatype is a numeric datatype
static OWL2Datatype valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OWL2Datatype[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

RDF_XML_LITERAL

public static final OWL2Datatype RDF_XML_LITERAL

OWL_REAL

public static final OWL2Datatype OWL_REAL

OWL_RATIONAL

public static final OWL2Datatype OWL_RATIONAL

XSD_DECIMAL

public static final OWL2Datatype XSD_DECIMAL

XSD_INTEGER

public static final OWL2Datatype XSD_INTEGER

XSD_NON_NEGATIVE_INTEGER

public static final OWL2Datatype XSD_NON_NEGATIVE_INTEGER

XSD_NON_POSITIVE_INTEGER

public static final OWL2Datatype XSD_NON_POSITIVE_INTEGER

XSD_POSITIVE_INTEGER

public static final OWL2Datatype XSD_POSITIVE_INTEGER

XSD_NEGATIVE_INTEGER

public static final OWL2Datatype XSD_NEGATIVE_INTEGER

XSD_LONG

public static final OWL2Datatype XSD_LONG

XSD_INT

public static final OWL2Datatype XSD_INT

XSD_SHORT

public static final OWL2Datatype XSD_SHORT

XSD_BYTE

public static final OWL2Datatype XSD_BYTE

XSD_UNSIGNED_LONG

public static final OWL2Datatype XSD_UNSIGNED_LONG

XSD_UNSIGNED_INT

public static final OWL2Datatype XSD_UNSIGNED_INT

XSD_UNSIGNED_SHORT

public static final OWL2Datatype XSD_UNSIGNED_SHORT

XSD_UNSIGNED_BYTE

public static final OWL2Datatype XSD_UNSIGNED_BYTE

XSD_DOUBLE

public static final OWL2Datatype XSD_DOUBLE

XSD_FLOAT

public static final OWL2Datatype XSD_FLOAT

XSD_STRING

public static final OWL2Datatype XSD_STRING

XSD_NORMALIZED_STRING

public static final OWL2Datatype XSD_NORMALIZED_STRING

XSD_TOKEN

public static final OWL2Datatype XSD_TOKEN

XSD_LANGUAGE

public static final OWL2Datatype XSD_LANGUAGE

XSD_NAME

public static final OWL2Datatype XSD_NAME

XSD_NCNAME

public static final OWL2Datatype XSD_NCNAME

XSD_NMTOKEN

public static final OWL2Datatype XSD_NMTOKEN

XSD_BOOLEAN

public static final OWL2Datatype XSD_BOOLEAN

XSD_HEX_BINARY

public static final OWL2Datatype XSD_HEX_BINARY

XSD_BASE_64_BINARY

public static final OWL2Datatype XSD_BASE_64_BINARY

XSD_ANY_URI

public static final OWL2Datatype XSD_ANY_URI

XSD_DATE_TIME

public static final OWL2Datatype XSD_DATE_TIME

XSD_DATE_TIME_STAMP

public static final OWL2Datatype XSD_DATE_TIME_STAMP
Method Detail

values

public static final OWL2Datatype[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(OWL2Datatype c : OWL2Datatype.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static OWL2Datatype valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

getDatatypeIRIs

public static java.util.Set<IRI> getDatatypeIRIs()
Gets all of the built in datatype URIs

Returns:
A set of URIs corresponding to the built in datatype URIs

getPattern

public java.util.regex.Pattern getPattern()
Gets the Pattern that specifies the regular expression for a datatype

Returns:
The Pattern, or null

isBuiltIn

public static boolean isBuiltIn(IRI datatypeIRI)
Determines if the specified IRI identifies a built in datatype.

Parameters:
datatypeIRI - The datatype IRI
Returns:
true if the IRI identifies a built in datatype, or false if the IRI does not identify a built in datatype.

getDatatype

public static OWL2Datatype getDatatype(IRI datatype)
Given a URI that identifies an OWLDatatype, this method obtains the corresponding OWLDatatypeVocabulary

Parameters:
datatype - The datatype URI
Returns:
The OWLDatatypeVocabulary
Throws:
OWLRuntimeException - if the specified URI is not a built in datatype URI

getShortName

public java.lang.String getShortName()
Gets the short human readable name for this datatype

Returns:
The short human readable name

getIRI

public IRI getIRI()
Gets the IRI of this datatype

Returns:
The IRI of this datatype

getURI

public java.net.URI getURI()
Gets the URI of this datatype

Returns:
The URI that identifies the datatype

getCategory

public OWL2Datatype.Category getCategory()
Gets the category for this datatype

Returns:
The category

isNumeric

public boolean isNumeric()
Determines if this datatype is a numeric datatype

Returns:
true if this datatype is a numeric datatype

isFinite

public boolean isFinite()
Determines whether or not this datatype is finite.

Returns:
true if this datatype is finite, or false if this datatype is infinite.

getFacets

public java.util.Collection<OWLFacet> getFacets()
Gets the facets that are allowed for facet restrictions of this datatype

Returns:
The allowed facets

isInLexicalSpace

public boolean isInLexicalSpace(java.lang.String s)
Determines if the specified string is the lexical space of this datatype

Parameters:
s - The string to test
Returns:
true if the string is in the lexical space, otherwise false