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> |
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 . |
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.Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.