Class ContentFragmentDataBuilder
java.lang.Object
com.adobe.cq.wcm.core.components.models.datalayer.builder.GenericDataBuilder<ContentFragmentDataBuilder,ContentFragmentData>
com.adobe.cq.wcm.core.components.models.datalayer.builder.ContentFragmentDataBuilder
public final class ContentFragmentDataBuilder
extends GenericDataBuilder<ContentFragmentDataBuilder,ContentFragmentData>
Data builder for content fragment components.
-
Method Summary
Modifier and TypeMethodDescription@NotNull ContentFragmentDatabuild()Build the data.withDescription(@NotNull Supplier<String> supplier) Set the supplier that supplies the component's description.@NotNull ContentFragmentDataBuilderwithElementsData(@NotNull Supplier<ContentFragmentData.ElementData[]> supplier) Set the supplier that supplies the content fragment data.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.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
-
withElementsData
@NotNull public @NotNull ContentFragmentDataBuilder withElementsData(@NotNull @NotNull Supplier<ContentFragmentData.ElementData[]> supplier) Set 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<ContentFragmentDataBuilder,ContentFragmentData> - 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 ContentFragmentDataBuilder 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
@NotNull public ContentFragmentDataBuilder withParentId(@NotNull @NotNull Supplier<String> supplier) 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
@NotNull public ContentFragmentDataBuilder withDescription(@NotNull @NotNull Supplier<String> supplier) 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:
-