Class RenderConfig

java.lang.Object
ac.simons.neo4j.migrations.core.catalog.RenderConfig

public final class RenderConfig extends Object
Contextual information passed to renderers.
Since:
1.7.0
Author:
Michael J. Simons
Soundtrack
Anthrax - Spreading The Disease
  • Method Details

    • create

      public static RenderConfig.IfNotExistsConfigBuilder create()
      Starts building a render context that eventually will result in a CREATE ... statement.
      Returns:
      An ongoing build step
    • drop

      public static RenderConfig.IfExistsConfigBuilder drop()
      Starts building a render context that eventually will result in a DROP ... statement.
      Returns:
      An ongoing build step
    • ignoreName

      public RenderConfig ignoreName()
      This is useful to get a render context that ignores the name of an object to force dropping things created without a name.
      Returns:
      a new context ignoring the name
    • withAdditionalOptions

      public RenderConfig withAdditionalOptions(List<? extends RenderConfig.AdditionalRenderingOptions> newOptions)
      Adds additional options to the renderer or deletes the existing ones.
      Parameters:
      newOptions - New list of options, may be null or empty
      Returns:
      A (potentially) new RenderConfig
      Since:
      1.11.0