public interface ContentFragment extends DAMContentFragment, ContainerExporter
/apps/core/wcm/components/contentfragment component. The model
provides information about the referenced content fragment and access to representations of its elements.DAMContentFragment.DAMContentElement| Modifier and Type | Field and Description |
|---|---|
static String |
PN_DISPLAY_MODE
Name of the required property that stores whether a single text element (
singleText) or multiple
elements (multi) are displayed. |
static String |
PN_ELEMENT_NAMES
Name of the optional resource property that stores the names of the elements to be used.
|
static String |
PN_PATH
Name of the mandatory resource property that stores the path to a content fragment.
|
static String |
PN_VARIATION_NAME
Name of the optional resource property that stores the name of the variation to be used.
|
JSON_PN_ELEMENTS, JSON_PN_ELEMENTS_ORDER, JSON_PN_MODEL| Modifier and Type | Method and Description |
|---|---|
default @NotNull Map<String,? extends ComponentExporter> |
getExportedItems()
Returns the map of all exported child items (resource names from Sling Model classes).
|
default @NotNull String[] |
getExportedItemsOrder()
Returns the order of items in the map.
|
default @NotNull String |
getExportedType()
Returns the type of the resource for which the export is performed.
|
default @NotNull String |
getGridResourceType()
Returns resource type that is used for the internal responsive grid.
|
default @Nullable String[] |
getParagraphs()
Returns the paragraphs of a multiline text element.
|
getAssociatedContent, getDescription, getEditorJSON, getElements, getExportedElements, getExportedElementsOrder, getName, getTitle, getTypestatic final String PN_PATH
static final String PN_ELEMENT_NAMES
static final String PN_VARIATION_NAME
static final String PN_DISPLAY_MODE
singleText) or multiple
elements (multi) are displayed.@NotNull default @NotNull String getGridResourceType()
@NotNull default @NotNull Map<String,? extends ComponentExporter> getExportedItems()
getExportedItems in interface ContainerExporterComponentExporter.getExportedType()@NotNull default @NotNull String[] getExportedItemsOrder()
getExportedItemsOrder in interface ContainerExporter@NotNull default @NotNull String getExportedType()
getExportedType in interface ComponentExportergetExportedType in interface DAMContentFragment@Nullable default @Nullable String[] getParagraphs()
null for non-multiline-text elementsCopyright © 2010 - 2020 Adobe. All Rights Reserved