public class DataType extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
xmlSchemaURIString
for each datatype, there exists a XML Schema URI in ontology which
is used to denote the specific datatype.
|
Constructor and Description |
---|
DataType(OURI xmlSchemaURI)
Constructor
|
DataType(String xmlSchemaURIString) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Compares if the two objects are same, i.e.
|
static DataType |
getBooleanDataType()
denotes the "http://www.w3.org/2001/XMLSchema#boolean" datatype.
|
static DataType |
getByteDataType()
denotes the "http://www.w3.org/2001/XMLSchema#byte" datatype.
|
static DataType |
getDataType(String datatypeURI)
Gets the respective datatype for the given datatype URI.
|
static DataType |
getDateDataType()
denotes the "http://www.w3.org/2001/XMLSchema#date" datatype.
|
static DataType |
getDateTimeDataType()
denotes the "http://www.w3.org/2001/XMLSchema#dateTime" datatype.
|
static DataType |
getDecimalDataType()
denotes the "http://www.w3.org/2001/XMLSchema#decimal" datatype.
|
static DataType |
getDoubleDataType()
denotes the "http://www.w3.org/2001/XMLSchema#double" datatype.
|
static DataType |
getDurationDataType()
denotes the "http://www.w3.org/2001/XMLSchema#duration" datatype.
|
static DataType |
getFloatDataType()
denotes the "http://www.w3.org/2001/XMLSchema#float" datatype.
|
static DataType |
getIntDataType()
denotes the "http://www.w3.org/2001/XMLSchema#int" datatype.
|
static DataType |
getIntegerDataType()
denotes the "http://www.w3.org/2001/XMLSchema#integer" datatype.
|
static Locale |
getLocale(String languageCode)
Gets the respective locale for the given 2 character language code.
|
static DataType |
getLongDataType()
denotes the "http://www.w3.org/2001/XMLSchema#long" datatype.
|
static DataType |
getNegativeIntegerDataType()
denotes the "http://www.w3.org/2001/XMLSchema#negativeInteger"
datatype.
|
static DataType |
getNonNegativeIntegerDataType()
denotes the "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
datatype.
|
static DataType |
getNonPositiveIntegerDataType()
denotes the "http://www.w3.org/2001/XMLSchema#nonPositiveInteger"
datatype.
|
static DataType |
getPositiveIntegerDataType()
denotes the "http://www.w3.org/2001/XMLSchema#positiveInteger"
datatype.
|
static DataType |
getShortDataType()
denotes the "http://www.w3.org/2001/XMLSchema#short" datatype.
|
static DataType |
getStringDataType()
denotes the "http://www.w3.org/2001/XMLSchema#string" datatype.
|
static DataType |
getTimeDataType()
denotes the "http://www.w3.org/2001/XMLSchema#time" datatype.
|
static DataType |
getUnsignedByteDataType()
denotes the "http://www.w3.org/2001/XMLSchema#unsignedByte"
datatype.
|
static DataType |
getUnsignedIntDataType()
denotes the "http://www.w3.org/2001/XMLSchema#unsignedInt"
datatype.
|
static DataType |
getUnsignedLongDataType()
denotes the "http://www.w3.org/2001/XMLSchema#unsignedLong"
datatype.
|
static DataType |
getUnsignedShortDataType()
denotes the "http://www.w3.org/2001/XMLSchema#unsignedShort"
datatype.
|
OURI |
getXmlSchemaURI()
Deprecated.
|
String |
getXmlSchemaURIString() |
int |
hashCode() |
boolean |
isStringDataType() |
boolean |
isValidValue(String value)
Checks whether the provided value is a valid value for the datatype
(e.g.
|
protected String xmlSchemaURIString
public DataType(OURI xmlSchemaURI)
xmlSchemaURI
- for each datatype, there exists a XML Schema
URI in ontology which is used to denote the specific
datatype. For example to denote the boolean datatype one
would have to use
"http://www.w3.org/2001/XMLSchema#boolean".public DataType(String xmlSchemaURIString)
public boolean isStringDataType()
public static DataType getBooleanDataType()
public static DataType getByteDataType()
public static DataType getDateDataType()
public static DataType getDecimalDataType()
public static DataType getDoubleDataType()
public static DataType getDurationDataType()
public static DataType getFloatDataType()
public static DataType getIntDataType()
public static DataType getIntegerDataType()
public static DataType getLongDataType()
public static DataType getNegativeIntegerDataType()
public static DataType getNonNegativeIntegerDataType()
public static DataType getNonPositiveIntegerDataType()
public static DataType getPositiveIntegerDataType()
public static DataType getShortDataType()
public static DataType getStringDataType()
public static DataType getTimeDataType()
public static DataType getDateTimeDataType()
public static DataType getUnsignedByteDataType()
public static DataType getUnsignedIntDataType()
public static DataType getUnsignedLongDataType()
public static DataType getUnsignedShortDataType()
@Deprecated public OURI getXmlSchemaURI()
public String getXmlSchemaURIString()
public boolean equals(Object o)
public boolean isValidValue(String value)
value
- public static DataType getDataType(String datatypeURI)
Copyright © 2024 GATE. All rights reserved.