Klasse TreeByPointerBuilder

java.lang.Object
org.ct42.fnflow.fnlib.utils.TreeByPointerBuilder

public class TreeByPointerBuilder extends Object
Utility class adding nodes to a node tree along JsonPointer path to set a node where the pointer is pointing to.
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    static void
    buildAndSet(com.fasterxml.jackson.core.JsonPointer pointer, com.fasterxml.jackson.databind.node.ObjectNode targetRoot, com.fasterxml.jackson.databind.JsonNode node)
    Build non-existing nodes in target tree and set node on path built.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • TreeByPointerBuilder

      public TreeByPointerBuilder()
  • Methodendetails

    • buildAndSet

      public static void buildAndSet(com.fasterxml.jackson.core.JsonPointer pointer, com.fasterxml.jackson.databind.node.ObjectNode targetRoot, com.fasterxml.jackson.databind.JsonNode node)
      Build non-existing nodes in target tree and set node on path built.
      Parameter:
      pointer - to the node to be set
      targetRoot - object the node should be added to
      node - to be added
      Löst aus:
      IllegalArgumentException - on node type mismatch