Package org.ct42.fnflow.fnlib.utils
Klasse TreeByPointerBuilder
java.lang.Object
org.ct42.fnflow.fnlib.utils.TreeByPointerBuilder
Utility class adding nodes to a node tree along JsonPointer path to set a node where the pointer is pointing to.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic voidbuildAndSet(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.
-
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 settargetRoot- object the node should be added tonode- to be added- Löst aus:
IllegalArgumentException- on node type mismatch
-