Interface ContentFragment
- All Superinterfaces:
Component,ComponentExporter,ContainerExporter,DAMContentFragment
Defines the Sling model for the
/apps/core/wcm/components/contentfragment component. The model
provides information about the referenced content fragment and access to representations of its elements.- Since:
- com.adobe.cq.wcm.core.components.models.contentfragment 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.adobe.cq.wcm.core.components.models.contentfragment.DAMContentFragment
DAMContentFragment.DAMContentElement -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the required property that stores whether a single text element (singleText) or multiple elements (multi) are displayed.static final StringName of the optional resource property that stores the names of the elements to be used.static final StringName of the mandatory resource property that stores the path to a content fragment.static final StringName of the optional resource property that stores the name of the variation to be used.Fields inherited from interface com.adobe.cq.wcm.core.components.models.contentfragment.DAMContentFragment
JSON_PN_ELEMENTS, JSON_PN_ELEMENTS_ORDER, JSON_PN_MODEL -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull Map<String, ? extends ComponentExporter> Returns the map of all exported child items (resource names from Sling Model classes).default @NotNull String[]Returns the order of items in the map.default @NotNull StringReturns the type of the resource for which the export is performed.default @NotNull StringReturns resource type that is used for the internal responsive grid.default @Nullable String[]Returns the paragraphs of a multiline text element.Methods inherited from interface com.adobe.cq.wcm.core.components.models.Component
getAppliedCssClasses, getData, getIdMethods inherited from interface com.adobe.cq.wcm.core.components.models.contentfragment.DAMContentFragment
getAssociatedContent, getDescription, getEditorJSON, getElements, getExportedElements, getExportedElementsOrder, getName, getTitle, getType
-
Field Details
-
PN_PATH
Name of the mandatory resource property that stores the path to a content fragment.- Since:
- com.adobe.cq.wcm.core.components.models.contentfragment 1.0.0
- See Also:
-
PN_ELEMENT_NAMES
Name of the optional resource property that stores the names of the elements to be used.- Since:
- com.adobe.cq.wcm.core.components.models.contentfragment 1.0.0
- See Also:
-
PN_VARIATION_NAME
Name of the optional resource property that stores the name of the variation to be used.- Since:
- com.adobe.cq.wcm.core.components.models.contentfragment 1.0.0
- See Also:
-
PN_DISPLAY_MODE
Name of the required property that stores whether a single text element (singleText) or multiple elements (multi) are displayed.- Since:
- com.adobe.cq.wcm.core.components.models.contentfragment 1.0.0
- See Also:
-
-
Method Details
-
getGridResourceType
Returns resource type that is used for the internal responsive grid.- Returns:
- resource type
- Since:
- com.adobe.cq.wcm.core.components.models.contentfragment 1.0.0
-
getExportedItems
Returns the map of all exported child items (resource names from Sling Model classes).- Specified by:
getExportedItemsin interfaceContainerExporter- Returns:
- the map of all exported child items
- Since:
- com.adobe.cq.wcm.core.components.models.contentfragment 1.0.0
- See Also:
-
getExportedItemsOrder
Returns the order of items in the map.- Specified by:
getExportedItemsOrderin interfaceContainerExporter- Returns:
- the order of the items in the map; the array can be empty if the item order is not provided by the underlying persistence layer
- Since:
- com.adobe.cq.wcm.core.components.models.contentfragment 1.0.0
-
getExportedType
Returns the type of the resource for which the export is performed.- Specified by:
getExportedTypein interfaceComponent- Specified by:
getExportedTypein interfaceComponentExporter- Specified by:
getExportedTypein interfaceDAMContentFragment- Returns:
- the type of the resource
- Since:
- com.adobe.cq.wcm.core.components.models.contentfragment 1.0.0
- See Also:
-
getParagraphs
Returns the paragraphs of a multiline text element.- Returns:
- an array containing HTML paragraphs or
nullfor non-multiline-text elements - Since:
- com.adobe.cq.wcm.core.components.models.contentfragment 1.0.0
-