for (Entry<String, SerialDynamic> entry : root.dynamic.entrySet())
{
List<SheetIndex> sheetIndexes = new ArrayList<SheetIndex>();
for (SerialDynamicSheetIndex eelt : entry.getValue().entries)
{
sheetIndexes.add(new SheetEntry(eelt.sheet, eelt.index));
}
this.elements.add(new Dynamic(
dynamicSheetHash(entry.getKey()), this.providers.getSheetCommander(), sheetIndexes));
}
}
if (root.list != null)
{
for (Entry<String, SerialList> entry : root.list.entrySet())
{
this.elements.add(new Possibilities(entry.getKey(), asList(entry.getValue().entries)));
}
}
if (root.condition != null)
{
for (Entry<String, SerialCondition> entry : root.condition.entrySet())
{
String indexNotComputed = entry.getValue().index;
if (entry.getValue().sheet.equals(Dynamic.DEDICATED_SHEET))
{
indexNotComputed = dynamicSheetHash(indexNotComputed);
}
this.elements.add(new Condition(
entry.getKey(), this.providers.getSheetCommander(), new SheetEntry(
entry.getValue().sheet, indexNotComputed),
Operator.fromSerializedForm(entry.getValue().symbol), entry.getValue().value));
}
}
if (root.set != null)