Class Configuration
- java.lang.Object
-
- org.neo4j.cypherdsl.core.renderer.Configuration
-
@API(status=EXPERIMENTAL, since="2021.0.1") public final class Configuration extends java.lang.Object
This class provides some configuration settings for the Cypher-DSL, mainly around rendering of a statement. Instances ofConfiguration
are threadsafe and can be reused. Please use theassociated builder
vianewConfig()
to create new variants.- Since:
- 2021.0.1
- Author:
- Michael J. Simons
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Configuration.Builder
Use this builder to create newConfiguration
instances.static class
Configuration.IndentStyle
Enum for the available indent styles.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Configuration
defaultConfig()
Cypher is not pretty printed by default.boolean
equals(java.lang.Object o)
int
getIndentSize()
Configuration.IndentStyle
getIndentStyle()
int
hashCode()
boolean
isPrettyPrint()
boolean
isRenderLiteralParameters()
static Configuration.Builder
newConfig()
static Configuration
prettyPrinting()
Pretty printing with default indentation settings.java.lang.String
toString()
-
-
-
Method Detail
-
defaultConfig
public static Configuration defaultConfig()
Cypher is not pretty printed by default. No indentation settings apply.- Returns:
- the default config
-
prettyPrinting
public static Configuration prettyPrinting()
Pretty printing with default indentation settings.- Returns:
- a configuration enabling pretty printing.
-
newConfig
public static Configuration.Builder newConfig()
-
isPrettyPrint
public boolean isPrettyPrint()
-
getIndentStyle
public Configuration.IndentStyle getIndentStyle()
-
getIndentSize
public int getIndentSize()
-
isRenderLiteralParameters
public boolean isRenderLiteralParameters()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-