Package org.onosproject.ui.topo
Class TopoJson
- java.lang.Object
- 
- org.onosproject.ui.topo.TopoJson
 
- 
 public final class TopoJson extends Object JSON utilities for the Topology View.
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static com.fasterxml.jackson.databind.node.ObjectNodehighlightsMessage(Highlights highlights)Returns a formatted message ready to send to the topology view to render highlights.static com.fasterxml.jackson.databind.node.ObjectNodejson(Highlights highlights)Transforms the given highlights model into a JSON message payload.static com.fasterxml.jackson.databind.node.ObjectNodejson(PropertyPanel pp)Translates the given property panel into JSON, for returning to the client.static com.fasterxml.jackson.databind.node.ObjectNodetopo2HighlightsMessage(Highlights highlights)Returns a formatted message ready to send to the topology-2 view to render highlights.
 
- 
- 
- 
Method Detail- 
highlightsMessagepublic static com.fasterxml.jackson.databind.node.ObjectNode highlightsMessage(Highlights highlights) Returns a formatted message ready to send to the topology view to render highlights.- Parameters:
- highlights- highlights model to transform
- Returns:
- fully formatted "show highlights" message
 
 - 
topo2HighlightsMessagepublic static com.fasterxml.jackson.databind.node.ObjectNode topo2HighlightsMessage(Highlights highlights) Returns a formatted message ready to send to the topology-2 view to render highlights.- Parameters:
- highlights- highlights model to transform
- Returns:
- fully formatted "show highlights" message
 
 - 
jsonpublic static com.fasterxml.jackson.databind.node.ObjectNode json(Highlights highlights) Transforms the given highlights model into a JSON message payload.- Parameters:
- highlights- the model to transform
- Returns:
- JSON payload
 
 - 
jsonpublic static com.fasterxml.jackson.databind.node.ObjectNode json(PropertyPanel pp) Translates the given property panel into JSON, for returning to the client.- Parameters:
- pp- the property panel model
- Returns:
- JSON payload
 
 
- 
 
-