Class ContainerDataBuilder
java.lang.Object
com.adobe.cq.wcm.core.components.models.datalayer.builder.GenericDataBuilder<ContainerDataBuilder,ContainerData>
com.adobe.cq.wcm.core.components.models.datalayer.builder.ContainerDataBuilder
public final class ContainerDataBuilder
extends GenericDataBuilder<ContainerDataBuilder,ContainerData>
Data builder for container components.
This builder will produce a valid
ContainerData object.-
Method Summary
Modifier and TypeMethodDescription@NotNull ContainerDatabuild()Build the data.withDescription(@NotNull Supplier<String> supplier) Set the supplier that supplies the component's description.withLastModifiedDate(@NotNull Supplier<Date> supplier) Set the supplier that supplies the component's last modified date.withLinkUrl(@NotNull Supplier<String> supplier) Sets the supplier that supplies the component's link URL.withParentId(@NotNull Supplier<String> supplier) Set the supplier that supplies the component's parent ID.@NotNull ContainerDataBuilderwithShownItems(@NotNull Supplier<String[]> supplier) Set the supplier that supplies the array of shown items.Set the supplier that supplies the component's text.Set the supplier that supplies the component's title.Set the supplier that supplies the component's type.Methods inherited from class com.adobe.cq.wcm.core.components.models.datalayer.builder.GenericDataBuilder
withId
-
Method Details
-
withShownItems
@NotNull public @NotNull ContainerDataBuilder withShownItems(@NotNull @NotNull Supplier<String[]> supplier) Set the supplier that supplies the array of shown items.- Parameters:
supplier- The shown items value supplier.- Returns:
- A new
ContainerDataBuilder. - See Also:
-
build
Description copied from class:GenericDataBuilderBuild the data.- Specified by:
buildin classGenericDataBuilder<ContainerDataBuilder,ContainerData> - Returns:
- The data object.
-
withType
Set the supplier that supplies the component's type.- Parameters:
supplier- The type value supplier.- Returns:
- A new data builder.
- See Also:
-
withLastModifiedDate
@NotNull public ContainerDataBuilder withLastModifiedDate(@NotNull @NotNull Supplier<Date> supplier) Set the supplier that supplies the component's last modified date.- Parameters:
supplier- The last modified date value supplier.- Returns:
- A new data builder.
- See Also:
-
withParentId
Set the supplier that supplies the component's parent ID.- Parameters:
supplier- The parent ID value supplier.- Returns:
- A new data builder.
- See Also:
-
withTitle
Set the supplier that supplies the component's title.- Parameters:
supplier- The title value supplier.- Returns:
- A new data builder.
- See Also:
-
withDescription
Set the supplier that supplies the component's description.- Parameters:
supplier- The description value supplier.- Returns:
- A new data builder.
- See Also:
-
withText
Set the supplier that supplies the component's text.- Parameters:
supplier- The text value supplier.- Returns:
- A new data builder.
- See Also:
-
withLinkUrl
Sets the supplier that supplies the component's link URL.- Parameters:
supplier- The link URL value supplier.- Returns:
- A new data builder.
- See Also:
-