@ConsumerType public interface ContainerExporter extends ComponentExporter
This interface is aimed at being implemented by Sling Model classes corresponding to container components (page, responsive grid, parsys, etc.).
NOTE: Getter methods' names are all prefixed to avoid name conflicts with methods from the implementation class.
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,? extends ComponentExporter> |
getExportedItems()
Returns the map of all exported child items (resource names from Sling Model classes).
|
java.lang.String[] |
getExportedItemsOrder()
Returns the order of items in the map.
|
getExportedType
@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.
ComponentExporter.getExportedType()
@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.
Copyright © 2010 - 2020 Adobe. All Rights Reserved