org.jrdf.parser.bnodefactory
Class ParserBlankNodeFactoryImpl

java.lang.Object
  extended by org.jrdf.parser.bnodefactory.ParserBlankNodeFactoryImpl
All Implemented Interfaces:
ParserBlankNodeFactory

public class ParserBlankNodeFactoryImpl
extends Object
implements ParserBlankNodeFactory


Constructor Summary
ParserBlankNodeFactoryImpl(MapFactory newCreator, GraphElementFactory newValueFactory)
           
 
Method Summary
 void clear()
          Resets this ParserBlankNodeFactory.
 void close()
          Close any resource used by the blank node factory.
 BlankNode createBlankNode()
          Creates a BlankNode that is unique relative to this instance of the ParserBlankNodeFactory.
 BlankNode createBlankNode(String nodeID)
          Creates a BlankNode that is only distinguished by the nodeID value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserBlankNodeFactoryImpl

public ParserBlankNodeFactoryImpl(MapFactory newCreator,
                                  GraphElementFactory newValueFactory)
Method Detail

createBlankNode

public BlankNode createBlankNode()
                          throws GraphElementFactoryException
Description copied from interface: ParserBlankNodeFactory
Creates a BlankNode that is unique relative to this instance of the ParserBlankNodeFactory.

Specified by:
createBlankNode in interface ParserBlankNodeFactory
Returns:
the BlankNode.
Throws:
GraphElementFactoryException - if there is a failure to create the blank node.

createBlankNode

public BlankNode createBlankNode(String nodeID)
                          throws GraphElementFactoryException
Description copied from interface: ParserBlankNodeFactory
Creates a BlankNode that is only distinguished by the nodeID value.

Specified by:
createBlankNode in interface ParserBlankNodeFactory
Parameters:
nodeID - the nodeID of the blank node - consistently returns the same blank node if it exists.
Returns:
the BlankNode.
Throws:
GraphElementFactoryException - if there is a failure to create the blank node.

clear

public void clear()
Description copied from interface: ParserBlankNodeFactory
Resets this ParserBlankNodeFactory. Subsequent calls to ParserBlankNodeFactory.createBlankNode() may return BlankNodes that compare equal to BlankNodes that were created before the call to clear().

Specified by:
clear in interface ParserBlankNodeFactory

close

public void close()
Description copied from interface: ParserBlankNodeFactory
Close any resource used by the blank node factory.

Specified by:
close in interface ParserBlankNodeFactory