org.jrdf.graph.mem
Class LiteralImpl

java.lang.Object
  extended byorg.jrdf.graph.AbstractLiteral
      extended byorg.jrdf.graph.mem.LiteralImpl
All Implemented Interfaces:
Literal, MemNode, Node, ObjectNode, Serializable, TypedNodeVisitable

public class LiteralImpl
extends AbstractLiteral
implements MemNode

RDF literal node.

Version:
$Revision: 1.1 $
Author:
Paul Gearon
See Also:
Serialized Form

Method Summary
 Long getId()
          Retrieves an internal identifier for this node.
 void setId(Long newId)
          Sets the interanl identifier for this node.
 String toString()
          Provide a legible representation of a literal.
 
Methods inherited from class org.jrdf.graph.AbstractLiteral
accept, equals, getDatatypeURI, getEscapedForm, getEscapedLexicalForm, getLanguage, getLexicalForm, hashCode, isWellFormedXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getId

public Long getId()
Retrieves an internal identifier for this node.

Specified by:
getId in interface MemNode
Returns:
A numeric identifier for thisa node.

setId

public void setId(Long newId)
Sets the interanl identifier for this node.

Parameters:
newId - new id.

toString

public String toString()
Provide a legible representation of a literal. Caches the immutable value so it gets mapped efficiently.

Specified by:
toString in interface Literal
Overrides:
toString in class AbstractLiteral
Returns:
the lexicalForm property, enclosed in " characters.