T - the type of Path.public static class Traversal.DefaultPathDescriptor<T extends Path> extends Object implements Traversal.PathDescriptor<T>
Traversal.PathDescriptor used in common toString()
representations in classes implementing Path.| Constructor and Description |
|---|
Traversal.DefaultPathDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
String |
nodeRepresentation(Path path,
Node node)
Returns a string representation of a
Node. |
String |
relationshipRepresentation(Path path,
Node from,
Relationship relationship)
Returns a string representation of a
Relationship. |
public String nodeRepresentation(Path path, Node node)
Traversal.PathDescriptorNode.nodeRepresentation in interface Traversal.PathDescriptor<T extends Path>path - the Path we're building a string representation
from.node - the Node to return a string representation of.Node.public String relationshipRepresentation(Path path, Node from, Relationship relationship)
Traversal.PathDescriptorRelationship.relationshipRepresentation in interface Traversal.PathDescriptor<T extends Path>path - the Path we're building a string representation
from.from - the previous Node in the path.relationship - the Relationship to return a string
representation of.Relationship.Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.