|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jrdf.graph.local.index.nodepool.LocalizerImpl
public class LocalizerImpl
Constructor Summary | |
---|---|
LocalizerImpl(NodePool newNodePool,
StringNodeMapper newMapper)
|
Method Summary | |
---|---|
BlankNode |
createLocalBlankNode()
|
Literal |
createLocalLiteral(String escapedForm)
|
URIReference |
createLocalURIReference(URI uri,
boolean validate)
|
Long |
localize(Node node)
Converts a node into it's localized version. |
Long[] |
localize(Node first,
Node second,
Node third)
Converts a globalized set of triple objects to an array of longs. |
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 |
---|
public LocalizerImpl(NodePool newNodePool, StringNodeMapper newMapper)
Method Detail |
---|
public Long[] localize(Node first, Node second, Node third) throws GraphException
Localizer
localize
in interface Localizer
first
- The first node.second
- The second node.third
- The last node.
GraphException
- If there was an error adding the statement.public Long localize(Node node) throws GraphException
Localizer
localize
in interface Localizer
node
- the node to localize.
GraphException
- if the node was not part of this node pool.public BlankNode createLocalBlankNode() throws GraphException
createLocalBlankNode
in interface Localizer
GraphException
public URIReference createLocalURIReference(URI uri, boolean validate)
createLocalURIReference
in interface Localizer
public Literal createLocalLiteral(String escapedForm)
createLocalLiteral
in interface Localizer
public void visitBlankNode(BlankNode blankNode)
TypedNodeVisitor
visitBlankNode
in interface TypedNodeVisitor
blankNode
- the blank node to visit.public void visitURIReference(URIReference uriReference)
TypedNodeVisitor
visitURIReference
in interface TypedNodeVisitor
uriReference
- the URI Reference to visit.public void visitLiteral(Literal literal)
TypedNodeVisitor
visitLiteral
in interface TypedNodeVisitor
literal
- the Literal to visit.public void visitNode(Node node)
TypedNodeVisitor
visitNode
in interface TypedNodeVisitor
node
- the node to visit.public void visitResource(Resource resource)
TypedNodeVisitor
visitResource
in interface TypedNodeVisitor
resource
- the node to visit.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |