Class TopoJson


  • public final class TopoJson
    extends Object
    JSON utilities for the Topology View.
    • Method Detail

      • highlightsMessage

        public 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
      • topo2HighlightsMessage

        public 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
      • json

        public 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
      • json

        public 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