Interface ContentFragment

    • Field Detail

      • PN_PATH

        static final java.lang.String 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:
        Constant Field Values
      • PN_ELEMENT_NAMES

        static final java.lang.String 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:
        Constant Field Values
      • PN_VARIATION_NAME

        static final java.lang.String 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:
        Constant Field Values
      • PN_DISPLAY_MODE

        static final java.lang.String 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:
        Constant Field Values
    • Method Detail

      • getGridResourceType

        @NotNull
        default @NotNull java.lang.String 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

        @NotNull
        default @NotNull java.util.Map<java.lang.String,​? extends ComponentExporter> getExportedItems()
        Returns the map of all exported child items (resource names from Sling Model classes).
        Specified by:
        getExportedItems in interface ContainerExporter
        Returns:
        the map of all exported child items
        Since:
        com.adobe.cq.wcm.core.components.models.contentfragment 1.0.0
        See Also:
        ComponentExporter.getExportedType()
      • getExportedItemsOrder

        @NotNull
        default @NotNull java.lang.String[] getExportedItemsOrder()
        Returns the order of items in the map.
        Specified by:
        getExportedItemsOrder in interface ContainerExporter
        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
      • getParagraphs

        @Nullable
        default @Nullable java.lang.String[] getParagraphs()
        Returns the paragraphs of a multiline text element.
        Returns:
        an array containing HTML paragraphs or null for non-multiline-text elements
        Since:
        com.adobe.cq.wcm.core.components.models.contentfragment 1.0.0