|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gate.creole.ontology.DataType
public class DataType
This class provides a list of datatypes, supported by the ontology API.
Field Summary | |
---|---|
protected String |
xmlSchemaURIString
for each datatype, there exists a XML Schema URI in ontology which is used to denote the specific datatype. |
Constructor Summary | |
---|---|
DataType(OURI xmlSchemaURI)
Constructor |
|
DataType(String xmlSchemaURIString)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
Compares if the two objects are same, i.e. if their string representations are identical. |
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. if the datatype is integer, parsing a string value into integer causes the exception or not. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String xmlSchemaURIString
Constructor Detail |
---|
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)
Method Detail |
---|
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)
equals
in class Object
public int hashCode()
hashCode
in class Object
public boolean isValidValue(String value)
value
-
public static DataType getDataType(String datatypeURI)
public static Locale getLocale(String languageCode)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |