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
FieldsModifier and TypeFieldDescriptionstatic final RDFDatatypeSingleton instance of the rdf:XMLLIteral datatype.static final RDFDatatypeDeprecated.static String -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEqual(LiteralLabel value1, LiteralLabel value2) Compares two instances of values of the given datatype.static booleanisXMLLiteral(RDFDatatype rdfDatatype) Test where anRDFDatatypeis that forrdf:XMLLiteral.Parse a lexical form of this datatype to a valueConvert a value of this datatype out to lexical form.static StringxmlDocumentFragmentToString(DocumentFragment fragment) Turn an org.w3c.dom.DocumentFragment into a string.static DocumentFragmentxmlLiteralValue(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, equals, extendedTypeDefinition, getHashCode, getJavaClass, getURI, hashCode, isValid, isValidLiteral, isValidValue, langTagCompatible, normalizeSubType, toStringMethods 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.dtXMLLiteralin applications. -
theXMLLiteralType
Deprecated.Prefer the constantrdfXMLLiteralorRDF.dtXMLLiteralSingleton instance (legacy name)
-
-
Method Details
-
isXMLLiteral
Test where anRDFDatatypeis that forrdf:XMLLiteral. -
isEqual
Compares two instances of values of the given datatype.- Specified by:
isEqualin interfaceRDFDatatype- Overrides:
isEqualin classBaseDatatype
-
parse
Parse a lexical form of this datatype to a value- Specified by:
parsein interfaceRDFDatatype- Overrides:
parsein 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:
unparsein interfaceRDFDatatype- Overrides:
unparsein classBaseDatatype
-
xmlDocumentFragmentToString
Turn an org.w3c.dom.DocumentFragment into a string.
-
rdfXMLLiteralorRDF.dtXMLLiteral