java.lang.Object
org.apache.jena.datatypes.BaseDatatype
org.apache.jena.datatypes.xsd.impl.XMLLiteralType
- All Implemented Interfaces:
RDFDatatype
rdf:XMLLiteral.
This implementation has RDF 1.1/RDF1.2 semantics.
Valid XML is legal. The value space is an XML document fragment.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.jena.datatypes.BaseDatatype
BaseDatatype.TypedValue
-
Field Summary
Modifier and TypeFieldDescriptionstatic final RDFDatatype
Singleton instance of the rdf:XMLLIteral datatype.static final RDFDatatype
Deprecated.static String
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isEqual
(LiteralLabel value1, LiteralLabel value2) Compares two instances of values of the given datatype.static boolean
isXMLLiteral
(RDFDatatype rdfDatatype) Test where anRDFDatatype
is that forrdf:XMLLiteral
.Parse a lexical form of this datatype to a valueConvert a value of this datatype out to lexical form.static String
xmlDocumentFragmentToString
(DocumentFragment fragment) Turn an org.w3c.dom.DocumentFragment into a string.static DocumentFragment
xmlLiteralValue
(String string) Parse a lexical form for an rdf:XMLLiteral to produce the literal value.Methods inherited from class org.apache.jena.datatypes.BaseDatatype
cannonicalise, extendedTypeDefinition, getHashCode, getJavaClass, getURI, isValid, 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, isValid, isValidLiteral, isValidValue, normalizeSubType
-
Field Details
-
XMLLiteralTypeURI
-
rdfXMLLiteral
Singleton instance of the rdf:XMLLIteral datatype. PreferRDF.dtXMLLiteral
in applications. -
theXMLLiteralType
Deprecated.Prefer the constantrdfXMLLiteral
orRDF.dtXMLLiteral
Singleton instance (legacy name)
-
-
Method Details
-
isXMLLiteral
Test where anRDFDatatype
is that forrdf:XMLLiteral
. -
isEqual
Compares two instances of values of the given datatype.- Specified by:
isEqual
in interfaceRDFDatatype
- Overrides:
isEqual
in classBaseDatatype
-
parse
Parse a lexical form of this datatype to a value- Specified by:
parse
in interfaceRDFDatatype
- Overrides:
parse
in classBaseDatatype
-
xmlLiteralValue
Parse a lexical form for an rdf:XMLLiteral to produce the literal value. The value is an XMLDocumentFragment
. -
unparse
Convert a value of this datatype out to lexical form.- Specified by:
unparse
in interfaceRDFDatatype
- Overrides:
unparse
in classBaseDatatype
-
xmlDocumentFragmentToString
Turn an org.w3c.dom.DocumentFragment into a string.
-
rdfXMLLiteral
orRDF.dtXMLLiteral