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

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

public class ARPString
extends TaintImpl
implements ALiteral

Author:
jjc

Constructor Summary
ARPString(Frame f, String value, AbsXMLContext forXMLLang)
           
ARPString(Frame f, String value, String parseType)
          Creates new StringToken
 
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

ARPString

public ARPString(Frame f,
                 String value,
                 String parseType)
          throws SAXParseException
Creates new StringToken

Throws:
SAXParseException

ARPString

public ARPString(Frame f,
                 String value,
                 AbsXMLContext forXMLLang)
          throws SAXParseException
Throws:
SAXParseException
Method Detail

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.

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.

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.

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.

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


Copyright © 2011. All Rights Reserved.