org.jrdf.graph.local.index.nodepool
Class StringNodeMapperImpl

java.lang.Object
  extended by org.jrdf.graph.local.index.nodepool.StringNodeMapperImpl
All Implemented Interfaces:
Serializable, StringNodeMapper, TypedNodeVisitor

public class StringNodeMapperImpl
extends Object
implements StringNodeMapper, Serializable

See Also:
Serialized Form

Constructor Summary
StringNodeMapperImpl(LiteralMatcher newLiteralMatcher)
           
 
Method Summary
 BlankNode convertToBlankNode(String string)
           
 Literal convertToLiteral(String string, Long nodeId)
           
 String convertToString(Node node)
           
 URIReference convertToURIReference(String string, Long nodeId)
           
 void visitBlankNode(BlankNode blankNode)
          Visit blank node.
 void visitLiteral(Literal literal)
          Visit Literal.
 void visitNode(Node node)
          Visit node.
 void visitResource(Resource resource)
          Visit Resource.
 void visitURIReference(URIReference uriReference)
          Visit URI Reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringNodeMapperImpl

public StringNodeMapperImpl(LiteralMatcher newLiteralMatcher)
Method Detail

convertToString

public String convertToString(Node node)
Specified by:
convertToString in interface StringNodeMapper

convertToBlankNode

public BlankNode convertToBlankNode(String string)
Specified by:
convertToBlankNode in interface StringNodeMapper

convertToURIReference

public URIReference convertToURIReference(String string,
                                          Long nodeId)
Specified by:
convertToURIReference in interface StringNodeMapper

convertToLiteral

public Literal convertToLiteral(String string,
                                Long nodeId)
Specified by:
convertToLiteral in interface StringNodeMapper

visitBlankNode

public void visitBlankNode(BlankNode blankNode)
Description copied from interface: TypedNodeVisitor
Visit blank node.

Specified by:
visitBlankNode in interface TypedNodeVisitor
Parameters:
blankNode - the blank node to visit.

visitURIReference

public void visitURIReference(URIReference uriReference)
Description copied from interface: TypedNodeVisitor
Visit URI Reference.

Specified by:
visitURIReference in interface TypedNodeVisitor
Parameters:
uriReference - the URI Reference to visit.

visitLiteral

public void visitLiteral(Literal literal)
Description copied from interface: TypedNodeVisitor
Visit Literal.

Specified by:
visitLiteral in interface TypedNodeVisitor
Parameters:
literal - the Literal to visit.

visitNode

public void visitNode(Node node)
Description copied from interface: TypedNodeVisitor
Visit node.

Specified by:
visitNode in interface TypedNodeVisitor
Parameters:
node - the node to visit.

visitResource

public void visitResource(Resource resource)
Description copied from interface: TypedNodeVisitor
Visit Resource.

Specified by:
visitResource in interface TypedNodeVisitor
Parameters:
resource - the node to visit.