Package com.vladsch.flexmark.test.util
Class SettableInstance<T>
- java.lang.Object
-
- com.vladsch.flexmark.test.util.SettableInstance<T>
-
- Type Parameters:
T
- type for the setting
public final class SettableInstance<T> extends java.lang.Object
Instance based on aggregated options used for spec test settings which may contain other such settings which can be accessed through other data keys directlyFor 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 Summary
Fields Modifier and Type Field Description private @NotNull DataKey<java.util.function.Consumer<T>>
myConsumerKey
private @Nullable java.util.Collection<SettableExtractedInstance<T,?>>
myExtractedInstanceSetters
-
Constructor Summary
Constructors Constructor Description SettableInstance(@NotNull DataKey<java.util.function.Consumer<T>> consumerKey)
SettableInstance(@NotNull DataKey<java.util.function.Consumer<T>> consumerKey, @NotNull java.util.Collection<SettableExtractedInstance<T,?>> extractedInstanceSetters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataHolder
aggregateActions(@NotNull DataHolder dataHolder, @Nullable DataHolder other, @Nullable DataHolder overrides)
T
setInstanceData(T instance, @Nullable DataHolder dataHolder)
-
-
-
Field Detail
-
myExtractedInstanceSetters
@Nullable private final @Nullable java.util.Collection<SettableExtractedInstance<T,?>> myExtractedInstanceSetters
-
-
Constructor Detail
-
SettableInstance
public SettableInstance(@NotNull @NotNull DataKey<java.util.function.Consumer<T>> consumerKey, @NotNull @NotNull java.util.Collection<SettableExtractedInstance<T,?>> extractedInstanceSetters)
-
-
Method Detail
-
setInstanceData
@NotNull public T setInstanceData(@NotNull T instance, @Nullable @Nullable DataHolder dataHolder)
-
aggregateActions
public DataHolder aggregateActions(@NotNull @NotNull DataHolder dataHolder, @Nullable @Nullable DataHolder other, @Nullable @Nullable DataHolder overrides)
-
-