Class Configuration.Builder

java.lang.Object
org.neo4j.cypherdsl.core.renderer.Configuration.Builder
Enclosing class:
Configuration

public static final class Configuration.Builder extends Object
Use this builder to create new Configuration instances.
  • Method Details

    • withPrettyPrint

      public Configuration.Builder withPrettyPrint(boolean prettyPrint)
      Enables or disables pretty printing. Enabling pretty printing will disable unnecessary escaping of labels and types.
      Parameters:
      prettyPrint - use true for enabling pretty printing
      Returns:
      this builder
    • withIndentStyle

      public Configuration.Builder withIndentStyle(Configuration.IndentStyle indentStyle)
      Parameters:
      indentStyle - The new indentation style
      Returns:
      this builder
    • withIndentSize

      public Configuration.Builder withIndentSize(int indentSize)
      Parameters:
      indentSize - The new indentation size
      Returns:
      this builder
    • alwaysEscapeNames

      public Configuration.Builder alwaysEscapeNames(boolean alwaysEscapeNames)
      Configure whether names should be always escaped.
      Parameters:
      alwaysEscapeNames - use true to always escape names
      Returns:
      this builder
    • withDialect

      public Configuration.Builder withDialect(Dialect dialect)
      Use a configuration with a dialect fitting your target database if the default dialect leads to incompatible results with your version of Neo4j.
      Parameters:
      dialect - The new dialect
      Returns:
      This builder. You can both use the original or this instance.
      Since:
      2022.3.0
    • build

      public Configuration build()
      Returns:
      a new immutable configuration