Interface ALiteral

All Superinterfaces:
ANode, Taint
All Known Implementing Classes:
ARPDatatypeLiteral, ARPString

public interface ALiteral extends ANode
A string literal property value from an RDF/XML file.
  • Method Summary

    Modifier and Type
    Method
    Description
    The datatype URI of a typed literal, or null for an untyped literal.
    The value of xml:lang for this literal, often the empty string.
    boolean
    True if this literal was formed from a rdf:parseType="Literal" construction.
    The string value of the literal.

    Methods inherited from interface org.apache.jena.rdfxml.xmlinput1.impl.Taint

    isTainted, taint
  • Method Details

    • isWellFormedXML

      boolean isWellFormedXML()
      True if this literal was formed from a rdf:parseType="Literal" construction.
      Returns:
      true for rdf:parseType="Literal" or any other unrecognised parseType.
    • getDatatypeURI

      String getDatatypeURI()
      The datatype URI of a typed literal, or null for an untyped literal.
      Returns:
      the URI as a String, or null
    • toString

      String toString()
      The string value of the literal.
      Overrides:
      toString in class Object
      Returns:
      The string.
    • getLang

      String getLang()
      The value of xml:lang for this literal, often the empty string.
      Returns:
      xml:lang.