|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jrdf.graph.local.NodeComparatorImpl
public final class NodeComparatorImpl
Currently only support simple comparison - either by node id for blank nodes or string comparisons for URIs and Literals.
| Constructor Summary | |
|---|---|
NodeComparatorImpl(NodeTypeComparator newNodeTypeComparator,
SemanticLiteralComparator newLiteralComparator,
BlankNodeComparator newBlankNodeComparator)
|
|
| Method Summary | |
|---|---|
int |
compare(Node o1,
Node o2)
|
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 |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public NodeComparatorImpl(NodeTypeComparator newNodeTypeComparator,
SemanticLiteralComparator newLiteralComparator,
BlankNodeComparator newBlankNodeComparator)
| Method Detail |
|---|
public int compare(Node o1,
Node o2)
compare in interface Comparator<Node>public void visitBlankNode(BlankNode blankNode)
TypedNodeVisitor
visitBlankNode in interface TypedNodeVisitorblankNode - the blank node to visit.public void visitURIReference(URIReference uriReference)
TypedNodeVisitor
visitURIReference in interface TypedNodeVisitoruriReference - the URI Reference to visit.public void visitLiteral(Literal literal)
TypedNodeVisitor
visitLiteral in interface TypedNodeVisitorliteral - the Literal to visit.public void visitNode(Node node)
TypedNodeVisitor
visitNode in interface TypedNodeVisitornode - the node to visit.public void visitResource(Resource resource)
TypedNodeVisitor
visitResource in interface TypedNodeVisitorresource - the node to visit.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||