Interface HierarchyNodeExporter
- 
- All Superinterfaces:
 ComponentExporter
@ConsumerType public interface HierarchyNodeExporter extends ComponentExporter
Defines the JSON export of a hierarchical nodeThis interface is aimed at being implemented by Sling Model classes that should provide a JSON export for a hierarchical node and its children.
NOTE: Getter methods' names are all prefixed to avoid name conflicts with methods from the implementation class.
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,? extends HierarchyNodeExporter>getExportedChildren()Returns the map of all exported childrenHierarchyNodeExporterof the current nodejava.lang.StringgetExportedHierarchyType()Hierarchical type of the exported nodejava.lang.StringgetExportedPath()Returns the path of the current node- 
Methods inherited from interface com.adobe.cq.export.json.ComponentExporter
getExportedType 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getExportedHierarchyType
@Nullable java.lang.String getExportedHierarchyType()
Hierarchical type of the exported node- Returns:
 
 
- 
getExportedPath
java.lang.String getExportedPath()
Returns the path of the current node- Returns:
 - the exported path
 
 
- 
getExportedChildren
java.util.Map<java.lang.String,? extends HierarchyNodeExporter> getExportedChildren()
Returns the map of all exported children
HierarchyNodeExporterof the current nodeNote: the field is added to the exported model when the map contains entries
- Returns:
 - the map of all exported children where the key is a unique identifier such as the resource path
 
 
 - 
 
 -