Class SettableExtractedInstance<T,S>

java.lang.Object
com.vladsch.flexmark.test.util.SettableExtractedInstance<T,S>
Type Parameters:
T - type for the container setting
S - type for the setting

public final class SettableExtractedInstance<T,S> extends Object
Instance based on aggregated options used for spec test settings which itself is part of a settable instance

For example: Rendering profile contains HTML, Parser and CSS settings. Rendering profile and its contained settings can be set by spec options. In order to handle this properly rendering profile settable instance is defined with HTML, Parser and CSS extracted settable instances. thus allowing setting options on contained instances directly or through the rendering profile container, while keeping the results consistent.

  • Field Details

    • myConsumerKey

      @NotNull private final @NotNull DataKey<Consumer<S>> myConsumerKey
    • myDataExtractor

      @NotNull private final @NotNull Function<T,S> myDataExtractor
  • Constructor Details

    • SettableExtractedInstance

      public SettableExtractedInstance(@NotNull @NotNull DataKey<Consumer<S>> consumerKey, @NotNull @NotNull Function<T,S> dataExtractor)
  • Method Details

    • aggregate

      public void aggregate(@NotNull T instance, @NotNull @NotNull DataHolder dataHolder)
    • aggregateActions

      @NotNull public @NotNull DataHolder aggregateActions(@NotNull @NotNull DataHolder dataHolder, @Nullable @Nullable DataHolder other, @Nullable @Nullable DataHolder overrides)