Interface ContainerExporter

    • Method Detail

      • getExportedItems

        @Nonnull
        java.util.Map<java.lang.String,​? extends ComponentExporter> getExportedItems()

        Returns the map of all exported child items (resource names from Sling Model classes).

        NOTE: Methods whose JSON serialization would lead to the same JSON property name (":items") will not be serialized.

        Returns:
        the map of all exported child items
        See Also:
        ComponentExporter.getExportedType()
      • getExportedItemsOrder

        @Nonnull
        java.lang.String[] getExportedItemsOrder()

        Returns the order of items in the map.

        NOTE: This information is required because the JSON specification and most implementations don't provide a stable order of items in JSON objects. Methods whose JSON serialization would lead to the same JSON property name (":order") will not be serialized.

        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