public interface Summary extends Map<String,SummaryEntry>
Modifier and Type | Method and Description |
---|---|
String |
displayEntry(StringBuffer sb,
SummaryEntry parentEntry)
Displays recursively on entry.
|
List<SummaryEntry> |
getChildren(SummaryEntry parentEntry) |
SummaryEntry |
getSummaryRoot()
Gets the root SummaryEntry in the map.
|
boolean |
hasChild(SummaryEntry parentEntry)
Tests if the given entry has at least one child in the map.
|
String |
toFlatList()
Display all the map in a flat way.
|
String |
toTreeString()
Displays all the map hierarchically.
|
boolean hasChild(SummaryEntry parentEntry)
parentEntry
- is the entry to testList<SummaryEntry> getChildren(SummaryEntry parentEntry)
parentEntry
- is parent of children you want to getString displayEntry(StringBuffer sb, SummaryEntry parentEntry)
sb
- is the String to display.parentEntry
- is the entry to displayString toFlatList()
String toTreeString()
SummaryEntry getSummaryRoot()
Copyright © 2011 Nuxeo SA. All Rights Reserved.