Top Description Fields Constructors Methods
com.vladsch.flexmark.test.util

public final Class SettableInstance<T>

extends Object
Class Inheritance
Type Parameters
<T>
type for the setting
Imports
com.vladsch.flexmark.util.data.DataHolder, .DataKey, org.jetbrains.annotations.NotNull, .Nullable, java.util.Collection, java.util.function.Consumer

Instance based on aggregated options used for spec test settings which may contain other such settings which can be accessed through other data keys directly

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 Summary

Modifier and TypeField and Description
private final @NotNull DataKey<Consumer<T>>
private final @Nullable Collection<SettableExtractedInstance<T, ?>>

Constructor Summary

AccessConstructor and Description
public
SettableInstance(@NotNull DataKey<Consumer<T>> consumerKey, @NotNull Collection<SettableExtractedInstance<T, ?>> extractedInstanceSetters)

public

Method Summary

Modifier and TypeMethod and Description
public DataHolder
public T
setInstanceData(T instance, @Nullable DataHolder dataHolder)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

myConsumerKeyback to summary
private final @NotNull DataKey<Consumer<T>> myConsumerKey
Annotations
@NotNull
myExtractedInstanceSettersback to summary
private final @Nullable Collection<SettableExtractedInstance<T, ?>> myExtractedInstanceSetters
Annotations
@Nullable

Constructor Detail

SettableInstanceback to summary
public SettableInstance(@NotNull DataKey<Consumer<T>> consumerKey, @NotNull Collection<SettableExtractedInstance<T, ?>> extractedInstanceSetters)
SettableInstanceback to summary
public SettableInstance(@NotNull DataKey<Consumer<T>> consumerKey)

Method Detail

aggregateActionsback to summary
public DataHolder aggregateActions(@NotNull DataHolder dataHolder, @Nullable DataHolder other, @Nullable DataHolder overrides)
setInstanceDataback to summary
public T setInstanceData(T instance, @Nullable DataHolder dataHolder)
Annotations
@NotNull