public final class TopoJson
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static com.fasterxml.jackson.databind.node.ObjectNode |
highlightsMessage(Highlights highlights)
Returns a formatted message ready to send to the topology view
to render highlights.
|
static com.fasterxml.jackson.databind.node.ObjectNode |
json(Highlights highlights)
Transforms the given highlights model into a JSON message payload.
|
static com.fasterxml.jackson.databind.node.ObjectNode |
json(PropertyPanel pp)
Translates the given property panel into JSON, for returning
to the client.
|
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.
|
public static com.fasterxml.jackson.databind.node.ObjectNode highlightsMessage(Highlights highlights)
highlights
- highlights model to transformpublic static com.fasterxml.jackson.databind.node.ObjectNode topo2HighlightsMessage(Highlights highlights)
highlights
- highlights model to transformpublic static com.fasterxml.jackson.databind.node.ObjectNode json(Highlights highlights)
highlights
- the model to transformpublic static com.fasterxml.jackson.databind.node.ObjectNode json(PropertyPanel pp)
pp
- the property panel model