Class NodeLabel

java.lang.Object
org.neo4j.cypherdsl.core.NodeLabel
All Implemented Interfaces:
Visitable

@API(status=STABLE, since="1.0") public final class NodeLabel extends Object implements Visitable
Expression for a single Node label.
Since:
1.0
Author:
Michael J. Simons
  • Method Details

    • getValue

      public String getValue()
      Returns:
      The actual value of this label. Needs to be escaped before rendering.
    • toString

      public String toString()
      Description copied from interface: Visitable
      Most visitables will render themselves into a Cypher fragment preceded with the actual classname. The representation however is not cached - in contrast to the ones for full statements. Using toString is recommended for debugging purposes mainly, and not for production use.

      The concrete classname has been prepended to help debugging and actually to discourage using fragments to build queries without explicitly rendering them, either as statement or going through the renderer on purpose.

      Specified by:
      toString in interface Visitable
      Overrides:
      toString in class Object
      Returns:
      A string representation of this visitable formatted as Classname{cypher=value}