org.jrdf.graph.mem
Class LiteralImpl

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

public class LiteralImpl
extends AbstractLiteral
implements MemNode, Serializable, LiteralMutableId

RDF literal node.

Version:
$Revision: 1045 $
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
 
Methods inherited from interface org.jrdf.graph.Literal
equals, getDatatypeURI, getEscapedForm, getEscapedLexicalForm, getLanguage, getLexicalForm, hashCode, isWellFormedXML
 
Methods inherited from interface org.jrdf.graph.TypedNodeVisitable
accept
 

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.

Specified by:
setId in interface LiteralMutableId
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.