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


public interface ALiteral

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

Author:
jjc

Method Summary
 java.lang.String getLang()
          The value of xml:lang for this literal, often the empty string.
 java.lang.String getParseType()
          When isWellFormedXML() is true, this returns the value of the rdf:parseType attribute, usually "Literal".
 boolean isWellFormedXML()
          Was this formed from a rdf:parseType="Literal" construction.
 java.lang.String toString()
          The string value of the literal.
 

Method Detail

isWellFormedXML

public boolean isWellFormedXML()
Was this formed from a rdf:parseType="Literal" construction.
Returns:
true for rdf:parseType="Literal" or any other unrecognised parseType.

getParseType

public java.lang.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.

toString

public java.lang.String toString()
The string value of the literal.
Overrides:
toString in class java.lang.Object
Returns:
The string.

getLang

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


Copyright © 2001 Hewlett-Packard. All Rights Reserved.