org.jrdf.writer.mem
Class BlankNodeRegistryImpl

java.lang.Object
  extended by org.jrdf.writer.mem.BlankNodeRegistryImpl
All Implemented Interfaces:
BlankNodeRegistry

public final class BlankNodeRegistryImpl
extends Object
implements BlankNodeRegistry

A registry of BlankNodes that are encountered while writing a Graph.

Author:
TurnerRX

Constructor Summary
BlankNodeRegistryImpl()
           
 
Method Summary
 String getNodeId(BlankNode node)
          If the node has already been registered, it's node Id is returned, otherwise it is registered and the new node Id is returned.
 void reset()
          Reset the associations between blank nodes and node ids.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlankNodeRegistryImpl

public BlankNodeRegistryImpl()
Method Detail

getNodeId

public String getNodeId(BlankNode node)
Description copied from interface: BlankNodeRegistry
If the node has already been registered, it's node Id is returned, otherwise it is registered and the new node Id is returned.

Specified by:
getNodeId in interface BlankNodeRegistry
Parameters:
node - BlankNode
Returns:
String node ID

reset

public void reset()
Reset the associations between blank nodes and node ids.

Specified by:
reset in interface BlankNodeRegistry