Paths.PathDescriptor (Neo4j Community 2.1.0-M01 API)
Date: 2014-02-20

org.neo4j.graphdb.traversal

## Interface Paths.PathDescriptor<T extends Path>

- Type Parameters:
    `T` - the type of `Path`.
  All Known Implementing Classes:
    Paths.DefaultPathDescriptor
  Enclosing class:
    Paths

      public static interface Paths.PathDescriptor<T extends Path>

  Provides hooks to help build a string representation of a `Path`.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `nodeRepresentation(T path, Node node)` Returns a string representation of a `Node`.
    `String` | `relationshipRepresentation(T path, Node from, Relationship relationship)` Returns a string representation of a `Relationship`.

- - ### Method Detail

    - #### nodeRepresentation

          String nodeRepresentation(T path,
                                  Node node)

      Returns a string representation of a `Node`.
      Parameters:
        `path` - the `Path` we're building a string representation from.
        `node` - the `Node` to return a string representation of.
      Returns:
        a string representation of a `Node`.

    - #### relationshipRepresentation

          String relationshipRepresentation(T path,
                                          Node from,
                                          Relationship relationship)

      Returns a string representation of a `Relationship`.
      Parameters:
        `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.
      Returns:
        a string representation of a `Relationship`.

Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.