| Modifier and Type | Class and Description |
|---|---|
static class |
Paths.DefaultPathDescriptor<T extends Path>
The default
Paths.PathDescriptor used in common toString()
representations in classes implementing Path. |
static interface |
Paths.PathDescriptor<T extends Path>
Provides hooks to help build a string representation of a
Path. |
| Constructor and Description |
|---|
Paths() |
| Modifier and Type | Method and Description |
|---|---|
static String |
defaultPathToString(Path path)
TODO: This method re-binds nodes and relationships.
|
static <T extends Path> |
descriptorForIdAndProperties(boolean nodeId,
boolean relId,
String... propertyKeys)
Create a new
Paths.PathDescriptor that prints values of listed property keys
and id of nodes and relationships if configured so. |
static <T extends Path> |
pathToString(T path,
Paths.PathDescriptor<T> builder)
Method for building a string representation of a
Path, using
the given builder. |
static String |
simplePathToString(Path path)
Returns a quite simple string representation of a
Path. |
static String |
simplePathToString(Path path,
String nodePropertyKey)
Returns a quite simple string representation of a
Path. |
static Path |
singleNodePath(Node node) |
public static <T extends Path> String pathToString(T path, Paths.PathDescriptor<T> builder)
Path, using
the given builder.T - the type of Path.path - the Path to build a string representation of.builder - the Paths.PathDescriptor to get
Node and Relationship representations from.Path.public static String defaultPathToString(Path path)
Path. It uses
the Paths.DefaultPathDescriptor to get representations.public static String simplePathToString(Path path)
Path. It
doesn't print relationship types or ids, just directions.public static String simplePathToString(Path path, String nodePropertyKey)
Path. It
doesn't print relationship types or ids, just directions. it uses the
nodePropertyKey to try to display that property value as in the
node representation instead of the node id. If that property doesn't
exist, the id is used.public static <T extends Path> Paths.PathDescriptor<T> descriptorForIdAndProperties(boolean nodeId, boolean relId, String... propertyKeys)
Paths.PathDescriptor that prints values of listed property keys
and id of nodes and relationships if configured so.T - the type of the PathnodeId - true if node id should be included.relId - true if relationship id should be included.propertyKeys - all property keys that should be included.Paths.PathDescriptorCopyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.