[New] Added mapping of name in FromFlatJsonVisitor
This commit is contained in:
parent
2470b02a10
commit
d8452f4cf5
|
@ -9,6 +9,7 @@ import com.google.gson.JsonObject;
|
|||
import li.strolch.exception.StrolchModelException;
|
||||
import li.strolch.model.ParameterBag;
|
||||
import li.strolch.model.StrolchRootElement;
|
||||
import li.strolch.model.Tags.Json;
|
||||
import li.strolch.model.parameter.Parameter;
|
||||
import li.strolch.utils.collections.MapOfSets;
|
||||
|
||||
|
@ -63,6 +64,10 @@ public class FromFlatJsonVisitor {
|
|||
|
||||
public void visit(StrolchRootElement element, JsonObject jsonObject) {
|
||||
|
||||
// update name if possible
|
||||
if (jsonObject.has(Json.NAME))
|
||||
element.setName(jsonObject.get(Json.NAME).getAsString());
|
||||
|
||||
Set<String> bagKeySet = element.getParameterBagKeySet();
|
||||
for (String bagId : bagKeySet) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue