Class EmbeddableDataBuilder
java.lang.Object
com.adobe.cq.wcm.core.components.models.datalayer.builder.GenericDataBuilder<EmbeddableDataBuilder,EmbeddableData>
com.adobe.cq.wcm.core.components.models.datalayer.builder.EmbeddableDataBuilder
Data builder for an Embeddable.
This builder produces a valid
EmbeddableData object.- Since:
- com.adobe.cq.wcm.core.components.models.datalayer.builder 1.2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull EmbeddableDatabuild()Build the data.@NotNull EmbeddableDataBuilderwithEmbeddableDetails(@NotNull Supplier<Map<String, Object>> supplier) Sets the supplier that supplies the content fragment data.Methods inherited from class com.adobe.cq.wcm.core.components.models.datalayer.builder.GenericDataBuilder
withId
-
Constructor Details
-
EmbeddableDataBuilder
-
-
Method Details
-
withEmbeddableDetails
@NotNull public @NotNull EmbeddableDataBuilder withEmbeddableDetails(@NotNull @NotNull Supplier<Map<String, Object>> supplier) Sets the supplier that supplies the content fragment data.- Parameters:
supplier- The content fragment data value supplier.- Returns:
- A new
ContentFragmentDataBuilder.
-
build
Description copied from class:GenericDataBuilderBuild the data.- Specified by:
buildin classGenericDataBuilder<EmbeddableDataBuilder,EmbeddableData> - Returns:
- The data object.
-