Class LoadUnloadDataKeyAggregator
java.lang.Object
com.vladsch.flexmark.test.util.LoadUnloadDataKeyAggregator
- All Implemented Interfaces:
DataKeyAggregator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final LoadUnloadDataKeyAggregatorstatic final DataKey<Collection<Extension>> static final DataKey<Collection<Class<? extends Extension>>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull DataHolderaggregate(@NotNull DataHolder combined) Combine options by applying aggregate action keys@NotNull DataHolderaggregateActions(@NotNull DataHolder combined, @NotNull DataHolder other, @NotNull DataHolder overrides) Combine aggregate action keys from two sets but do not apply them@NotNull DataHolderclean(DataHolder combined) Remove any keys which contain aggregation actions and do not represent a statereturn a set of aggregator classes this aggregator should run after
-
Field Details
-
UNLOAD_EXTENSIONS
-
LOAD_EXTENSIONS
-
INSTANCE
-
-
Constructor Details
-
LoadUnloadDataKeyAggregator
private LoadUnloadDataKeyAggregator()
-
-
Method Details
-
aggregate
Description copied from interface:DataKeyAggregatorCombine options by applying aggregate action keys- Specified by:
aggregatein interfaceDataKeyAggregator- Parameters:
combined- set of combined options (by overwriting or combined by prior aggregator)- Returns:
- combined and cleaned of aggregate action keys, return MutableDataHolder if it was modified so downstream aggregators re-use the mutable
-
aggregateActions
@NotNull public @NotNull DataHolder aggregateActions(@NotNull @NotNull DataHolder combined, @NotNull @NotNull DataHolder other, @NotNull @NotNull DataHolder overrides) Description copied from interface:DataKeyAggregatorCombine aggregate action keys from two sets but do not apply them- Specified by:
aggregateActionsin interfaceDataKeyAggregator- Parameters:
combined- set of combined options (by overwriting or combined by prior aggregator)other- set of original uncombined optionsoverrides- overriding set of options- Returns:
- combined aggregate actions from other and overrides overwritten in combined
-
clean
Description copied from interface:DataKeyAggregatorRemove any keys which contain aggregation actions and do not represent a state- Specified by:
cleanin interfaceDataKeyAggregator- Parameters:
combined- combined data holder- Returns:
- cleaned of all aggregate action keys
-
invokeAfterSet
Description copied from interface:DataKeyAggregatorreturn a set of aggregator classes this aggregator should run after- Specified by:
invokeAfterSetin interfaceDataKeyAggregator- Returns:
- keys
-