public enum OWL2Datatype extends Enum<OWL2Datatype> implements HasIRI, HasShortForm, HasPrefixedName
Modifier and Type | Class and Description |
---|---|
static class |
OWL2Datatype.Category
Category enum.
|
static class |
OWL2Datatype.WhiteSpaceNormalisation
Normalization enum.
|
Enum Constant and Description |
---|
OWL_RATIONAL
OWL_RATIONAL
|
OWL_REAL
OWL_REAL
|
RDF_PLAIN_LITERAL
RDF_PLAIN_LITERAL
|
RDF_XML_LITERAL
RDF_XML_LITERAL
|
RDFS_LITERAL
RDFS_LITERAL
|
XSD_ANY_URI
XSD_ANY_URI
|
XSD_BASE_64_BINARY
XSD_BASE_
|
XSD_BOOLEAN
XSD_BOOLEAN
|
XSD_BYTE
XSD_BYTE
|
XSD_DATE_TIME
XSD_DATE_TIME
|
XSD_DATE_TIME_STAMP
XSD_DATE_TIME_STAMP
|
XSD_DECIMAL
XSD_DECIMAL
|
XSD_DOUBLE
XSD_DOUBLE
|
XSD_FLOAT
XSD_FLOAT
|
XSD_HEX_BINARY
XSD_HEX_BINARY
|
XSD_INT
XSD_INT
|
XSD_INTEGER
XSD_INTEGER
|
XSD_LANGUAGE
XSD_LANGUAGE
|
XSD_LONG
XSD_LONG
|
XSD_NAME
XSD_NAME
|
XSD_NCNAME
XSD_NCNAME
|
XSD_NEGATIVE_INTEGER
XSD_NEGATIVE_INTEGER
|
XSD_NMTOKEN
XSD_NMTOKEN
|
XSD_NON_NEGATIVE_INTEGER
XSD_NON_NEGATIVE_INTEGER
|
XSD_NON_POSITIVE_INTEGER
XSD_NON_POSITIVE_INTEGER
|
XSD_NORMALIZED_STRING
XSD_NORMALIZED_STRING
|
XSD_POSITIVE_INTEGER
XSD_POSITIVE_INTEGER
|
XSD_SHORT
XSD_SHORT
|
XSD_STRING
XSD_STRING
|
XSD_TOKEN
XSD_TOKEN
|
XSD_UNSIGNED_BYTE
XSD_UNSIGNED_BYTE
|
XSD_UNSIGNED_INT
XSD_UNSIGNED_INT
|
XSD_UNSIGNED_LONG
XSD_UNSIGNED_LONG
|
XSD_UNSIGNED_SHORT
XSD_UNSIGNED_SHORT
|
Modifier and Type | Method and Description |
---|---|
OWL2Datatype.Category |
getCategory()
Gets the category for this datatype.
|
static OWL2Datatype |
getDatatype(IRI datatype)
Given an IRI that identifies an
OWLDatatype , this method obtains
the corresponding OWL2Datatype . |
OWLDatatype |
getDatatype(OWLDataFactory factory)
Gets the equivalent OWLDatatype from the given factory.
|
static Set<IRI> |
getDatatypeIRIs()
Gets all of the built in datatype IRIs.
|
Collection<OWLFacet> |
getFacets()
Gets the facets that are allowed for facet restrictions of this datatype.
|
IRI |
getIRI()
Gets the IRI of this datatype.
|
Pattern |
getPattern()
Gets the Pattern that specifies the regular expression for the allowed
lexical values of a datatype.
|
String |
getPatternString()
Gets the Pattern string that specifies the regular expression for the
allowed lexical values of a datatype.
|
String |
getPrefixedName()
Gets the prefixed name.
|
String |
getShortForm()
Gets the short form for this vocabulary element.
|
String |
getShortName()
Deprecated.
Use
getShortForm() |
URI |
getURI()
Deprecated.
Use
getIRI() . |
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(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(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 are declared.
|
public static final OWL2Datatype RDF_XML_LITERAL
public static final OWL2Datatype RDFS_LITERAL
public static final OWL2Datatype RDF_PLAIN_LITERAL
public static final OWL2Datatype OWL_REAL
public static final OWL2Datatype OWL_RATIONAL
public static final OWL2Datatype XSD_STRING
public static final OWL2Datatype XSD_NORMALIZED_STRING
public static final OWL2Datatype XSD_TOKEN
public static final OWL2Datatype XSD_LANGUAGE
public static final OWL2Datatype XSD_NAME
public static final OWL2Datatype XSD_NCNAME
public static final OWL2Datatype XSD_NMTOKEN
public static final OWL2Datatype XSD_DECIMAL
public static final OWL2Datatype XSD_INTEGER
public static final OWL2Datatype XSD_NON_NEGATIVE_INTEGER
public static final OWL2Datatype XSD_NON_POSITIVE_INTEGER
public static final OWL2Datatype XSD_POSITIVE_INTEGER
public static final OWL2Datatype XSD_NEGATIVE_INTEGER
public static final OWL2Datatype XSD_LONG
public static final OWL2Datatype XSD_INT
public static final OWL2Datatype XSD_SHORT
public static final OWL2Datatype XSD_BYTE
public static final OWL2Datatype XSD_UNSIGNED_LONG
public static final OWL2Datatype XSD_UNSIGNED_INT
public static final OWL2Datatype XSD_UNSIGNED_SHORT
public static final OWL2Datatype XSD_UNSIGNED_BYTE
public static final OWL2Datatype XSD_DOUBLE
public static final OWL2Datatype XSD_FLOAT
public static final OWL2Datatype XSD_BOOLEAN
public static final OWL2Datatype XSD_HEX_BINARY
public static final OWL2Datatype XSD_BASE_64_BINARY
public static final OWL2Datatype XSD_ANY_URI
public static final OWL2Datatype XSD_DATE_TIME
public static final OWL2Datatype XSD_DATE_TIME_STAMP
public static OWL2Datatype[] values()
for (OWL2Datatype c : OWL2Datatype.values()) System.out.println(c);
public static OWL2Datatype valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Set<IRI> getDatatypeIRIs()
OWL2Datatype
s. Not null
.public Pattern getPattern()
null
.public String getPatternString()
public static boolean isBuiltIn(IRI datatypeIRI)
datatypeIRI
- The datatype IRItrue
if the IRI identifies a built in datatype, or
false
if the IRI does not identify a built in datatype.public static OWL2Datatype getDatatype(IRI datatype)
OWLDatatype
, this method obtains
the corresponding OWL2Datatype
.datatype
- The datatype IRI. Not null
.OWL2Datatype
that has the specified IRI
.OWLRuntimeException
- if the specified IRI is not a built in datatype IRI.@Deprecated public String getShortName()
getShortForm()
public String getShortForm()
XSD_STRING
etc.getShortForm
in interface HasShortForm
null
.public IRI getIRI()
@Deprecated public URI getURI()
getIRI()
.public OWL2Datatype.Category getCategory()
public boolean isNumeric()
true
if this datatype is a numeric datatypepublic boolean isFinite()
true
if this datatype is finite, or false
if this
datatype is infinite.public Collection<OWLFacet> getFacets()
public OWLDatatype getDatatype(OWLDataFactory factory)
factory
- the OWLDataFactory. Not null
.OWLDatatype
that has the same IRI as this
OWL2Datatype
. Not null
.public boolean isInLexicalSpace(String s)
s
- The string to testtrue
if the string is in the lexical space, otherwise
false
public String getPrefixedName()
HasPrefixedName
getPrefixedName
in interface HasPrefixedName
null
.Copyright © 2017 The University of Manchester. All Rights Reserved.