use of org.onosproject.ui.model.topo.UiLink in project onos by opennetworkinglab.
the class Topo2Jsonifier method json.
private ObjectNode json(Set<UiSynthLink> memberSet) {
ArrayNode rollup = arrayNode();
ObjectNode node = null;
boolean first = true;
for (UiSynthLink member : memberSet) {
UiLink link = member.link();
if (first) {
node = json(link);
first = false;
}
rollup.add(json(member.original()));
}
if (node != null) {
node.set("rollup", rollup);
}
return node;
}
Aggregations