public class XMLLiteralType extends BaseDatatype implements RDFDatatype
rdf:parsetype='literal'
.BaseDatatype.TypedValue
Modifier and Type | Field and Description |
---|---|
static RDFDatatype |
theXMLLiteralType
Singleton instance
|
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(String lexicalForm)
Test whether the given string is a legal lexical form
of this datatype.
|
Object |
parse(String lexicalForm)
Parse a lexical form of this datatype to a value
|
String |
unparse(Object value)
Convert a serialize a value of this datatype out
to lexical form.
|
cannonicalise, extendedTypeDefinition, getHashCode, getJavaClass, getURI, isEqual, isValidLiteral, isValidValue, langTagCompatible, normalizeSubType, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
cannonicalise, extendedTypeDefinition, getHashCode, getJavaClass, getURI, isEqual, isValidLiteral, isValidValue, normalizeSubType
public static final RDFDatatype theXMLLiteralType
public String unparse(Object value)
unparse
in interface RDFDatatype
unparse
in class BaseDatatype
public Object parse(String lexicalForm) throws DatatypeFormatException
parse
in interface RDFDatatype
parse
in class BaseDatatype
DatatypeFormatException
- if the lexical form is not legalpublic boolean isValid(String lexicalForm)
isValid
in interface RDFDatatype
isValid
in class BaseDatatype
Licenced under the Apache License, Version 2.0