Class TopoJson


  • public final class TopoJson
    extends java.lang.Object
    JSON utilities for the Topology View.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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