public interface RDFDatatype
Modifier and Type | Method and Description |
---|---|
Object |
cannonicalise(Object value)
Cannonicalise a java Object value to a normal form.
|
Object |
extendedTypeDefinition()
Returns an object giving more details on the datatype.
|
int |
getHashCode(LiteralLabel lit)
Gets the hash code of a given value.
|
Class<?> |
getJavaClass()
If this datatype is used as the canonical representation
for a particular java datatype then return that java type,
otherwise returns null.
|
String |
getURI()
Return the URI which is the label for this datatype
|
boolean |
isEqual(LiteralLabel value1,
LiteralLabel value2)
Compares two instances of values of the given datatype.
|
boolean |
isValid(String lexicalForm)
Test whether the given string is a legal lexical form
of this datatype.
|
boolean |
isValidLiteral(LiteralLabel lit)
Test whether the given LiteralLabel is a valid instance
of this datatype.
|
boolean |
isValidValue(Object valueForm)
Test whether the given object is a legal value form
of this datatype.
|
RDFDatatype |
normalizeSubType(Object value,
RDFDatatype dt)
Normalization.
|
Object |
parse(String lexicalForm)
Parse a lexical form of this datatype to a value
|
String |
unparse(Object value)
Convert a value of this datatype out
to lexical form.
|
String getURI()
Object parse(String lexicalForm) throws DatatypeFormatException
DatatypeFormatException
- if the lexical form is not legalboolean isValid(String lexicalForm)
boolean isValidValue(Object valueForm)
boolean isValidLiteral(LiteralLabel lit)
boolean isEqual(LiteralLabel value1, LiteralLabel value2)
int getHashCode(LiteralLabel lit)
Class<?> getJavaClass()
Object cannonicalise(Object value)
Object extendedTypeDefinition()
org.apache.xerces.impl.xs.dv.XSSimpleType
.RDFDatatype normalizeSubType(Object value, RDFDatatype dt)
value
- the current object valuedt
- the currently set data typeLicenced under the Apache License, Version 2.0