java.lang.Object
org.apache.jena.datatypes.BaseDatatype
org.apache.jena.datatypes.xsd.impl.XMLLiteralType
- All Implemented Interfaces:
RDFDatatype
Builtin data type to represent XMLLiteral (i.e. items created
by use of
rdf:parsetype='literal'
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.jena.datatypes.BaseDatatype
BaseDatatype.TypedValue
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
Test whether the given string is a legal lexical form of this datatype.Parse a lexical form of this datatype to a valueConvert a serialize a value of this datatype out to lexical form.Methods inherited from class org.apache.jena.datatypes.BaseDatatype
cannonicalise, extendedTypeDefinition, getHashCode, getJavaClass, getURI, isEqual, isValidLiteral, isValidValue, langTagCompatible, normalizeSubType, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.jena.datatypes.RDFDatatype
cannonicalise, extendedTypeDefinition, getHashCode, getJavaClass, getURI, isEqual, isValidLiteral, isValidValue, normalizeSubType
-
Field Details
-
theXMLLiteralType
Singleton instance
-
-
Method Details
-
unparse
Convert a serialize a value of this datatype out to lexical form.- Specified by:
unparse
in interfaceRDFDatatype
- Overrides:
unparse
in classBaseDatatype
-
parse
Parse a lexical form of this datatype to a value- Specified by:
parse
in interfaceRDFDatatype
- Overrides:
parse
in classBaseDatatype
- Throws:
DatatypeFormatException
- if the lexical form is not legal
-
isValid
Test whether the given string is a legal lexical form of this datatype.- Specified by:
isValid
in interfaceRDFDatatype
- Overrides:
isValid
in classBaseDatatype
-