com.hp.hpl.jena.rdf.arp
Interface ALiteral

All Superinterfaces:
com.hp.hpl.jena.rdf.arp.impl.ANode, com.hp.hpl.jena.rdf.arp.impl.Taint

public interface ALiteral
extends com.hp.hpl.jena.rdf.arp.impl.ANode

A string literal property value from an RDF/XML file.

Author:
jjc

Method Summary
 String getDatatypeURI()
          The datatype URI of a typed literal, or null for an untyped literal.
 String getLang()
          The value of xml:lang for this literal, often the empty string.
 String getParseType()
          When isWellFormedXML() is true, this returns the value of the rdf:parseType attribute, usually "Literal".
 boolean isWellFormedXML()
          True if this literal was formed from a rdf:parseType="Literal" construction.
 String toString()
          The string value of the literal.
 
Methods inherited from interface com.hp.hpl.jena.rdf.arp.impl.Taint
isTainted, taint
 

Method Detail

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.

getParseType

String getParseType()
When isWellFormedXML() is true, this returns the value of the rdf:parseType attribute, usually "Literal". Otherwise null is returned.

Returns:
The parseType for well formed XML, or null for normal literals.

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.


Licenced under the Apache License, Version 2.0