- java.lang.Object
-
- org.junitpioneer.jupiter.json.JacksonNode
-
-
Field Summary
Fields Modifier and Type Field Description private com.fasterxml.jackson.databind.JsonNodenodeprivate com.fasterxml.jackson.databind.ObjectMapperobjectMapper
-
Constructor Summary
Constructors Constructor Description JacksonNode(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.fasterxml.jackson.databind.JsonNode node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.stream.Stream<Node>elements()java.util.Optional<Node>getNode(java.lang.String name)Get the node value with the given name.booleanisArray()java.lang.StringtoString()<T> TtoType(java.lang.reflect.Type type)Convert this node into the requestedtypejava.lang.Objectvalue(java.lang.reflect.Type typeHint)Get the value of the node.
-
-
-
Method Detail
-
isArray
public boolean isArray()
-
elements
public java.util.stream.Stream<Node> elements()
-
toType
public <T> T toType(java.lang.reflect.Type type)
Description copied from interface:NodeConvert this node into the requestedtype
-
getNode
public java.util.Optional<Node> getNode(java.lang.String name)
Description copied from interface:NodeGet the node value with the given name.
-
value
public java.lang.Object value(java.lang.reflect.Type typeHint)
Description copied from interface:NodeGet the value of the node.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-