org.mulgara.jena.rdf.arp.impl
Class ARPDatatypeLiteral

java.lang.Object
  extended by org.mulgara.jena.rdf.arp.impl.TaintImpl
      extended by org.mulgara.jena.rdf.arp.impl.ARPDatatypeLiteral
All Implemented Interfaces:
ALiteral, ANode, Taint

public class ARPDatatypeLiteral
extends TaintImpl
implements ALiteral

Author:
Jeremy J. Carroll

Constructor Summary
ARPDatatypeLiteral(Frame f, String lexf, URIReference dt)
           
 
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()
          Deprecated.  
 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 class org.mulgara.jena.rdf.arp.impl.TaintImpl
isTainted, taint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mulgara.jena.rdf.arp.impl.Taint
isTainted, taint
 

Constructor Detail

ARPDatatypeLiteral

public ARPDatatypeLiteral(Frame f,
                          String lexf,
                          URIReference dt)
                   throws SAXParseException
Throws:
SAXParseException
Method Detail

isWellFormedXML

public boolean isWellFormedXML()
Description copied from interface: ALiteral
True if this literal was formed from a rdf:parseType="Literal" construction.

Specified by:
isWellFormedXML in interface ALiteral
Returns:
true for rdf:parseType="Literal" or any other unrecognised parseType.
See Also:
ALiteral.isWellFormedXML()

getParseType

@Deprecated
public String getParseType()
Deprecated. 

Description copied from interface: ALiteral
When isWellFormedXML() is true, this returns the value of the rdf:parseType attribute, usually "Literal". Otherwise null is returned.

Specified by:
getParseType in interface ALiteral
Returns:
The parseType for well formed XML, or null for normal literals.
See Also:
ALiteral.getParseType()

toString

public String toString()
Description copied from interface: ALiteral
The string value of the literal.

Specified by:
toString in interface ALiteral
Overrides:
toString in class Object
Returns:
The string.

getDatatypeURI

public String getDatatypeURI()
Description copied from interface: ALiteral
The datatype URI of a typed literal, or null for an untyped literal.

Specified by:
getDatatypeURI in interface ALiteral
Returns:
the URI as a String, or null
See Also:
ALiteral.getDatatypeURI()

getLang

public String getLang()
Description copied from interface: ALiteral
The value of xml:lang for this literal, often the empty string.

Specified by:
getLang in interface ALiteral
Returns:
xml:lang.
See Also:
ALiteral.getLang()


Copyright © 2011. All Rights Reserved.