public final class JsonNodeSelectors
extends java.lang.Object
Factories for JsonNodeSelectors
.
Methods in this class fall into two broad categories - those that take a varargs argument of Object
s
and navigate down an entire hierarchy, and those that address a single node in a hierarchy.
For example,
aStringNode(Object... pathElements)
takes a series of String
s and
Integer
s as its argument which tell it how to navigate down a hierarchy to a particular JSON string.
The String
s tell it to select a field with the given name from an object, and the Integer
s
tell it to select an element with the given index from an array.
By contrast, anArrayNodeWithElement(int index)
addresses a single array node only, selecting the
element at the given index from it.
Modifier and Type | Method and Description |
---|---|
static JsonNodeSelector<JsonNode,java.lang.Boolean> |
aBooleanNode(java.lang.Object... pathElements) |
static JsonNodeSelector<java.util.Map<JsonStringNode,JsonNode>,JsonNode> |
aField(JsonStringNode fieldName) |
static JsonNodeSelector<java.util.Map<JsonStringNode,JsonNode>,JsonNode> |
aField(java.lang.String fieldName) |
static JsonNodeSelector<JsonNode,java.util.List<JsonNode>> |
anArrayNode(java.lang.Object... pathElements) |
static JsonNodeSelector<JsonNode,JsonNode> |
anArrayNodeWithElement(int index) |
static JsonNodeSelector<java.util.List<JsonNode>,JsonNode> |
anElement(int index) |
static JsonNodeSelector<JsonNode,java.util.Map<JsonStringNode,JsonNode>> |
anObjectNode(java.lang.Object... pathElements) |
static JsonNodeSelector<JsonNode,JsonNode> |
anObjectNodeWithField(JsonStringNode fieldName) |
static JsonNodeSelector<JsonNode,JsonNode> |
anObjectNodeWithField(java.lang.String fieldName) |
static JsonNodeSelector<JsonNode,java.util.List<JsonNode>> |
aNullableArrayNode(java.lang.Object... pathElements) |
static JsonNodeSelector<JsonNode,java.lang.Boolean> |
aNullableBooleanNode(java.lang.Object... pathElements) |
static JsonNodeSelector<JsonNode,java.lang.String> |
aNullableNumberNode(java.lang.Object... pathElements) |
static JsonNodeSelector<JsonNode,java.util.Map<JsonStringNode,JsonNode>> |
aNullableObjectNode(java.lang.Object... pathElements) |
static JsonNodeSelector<JsonNode,java.lang.String> |
aNullableStringNode(java.lang.Object... pathElements) |
static JsonNodeSelector<JsonNode,JsonNode> |
aNullNode(java.lang.Object... pathElements) |
static JsonNodeSelector<JsonNode,java.lang.String> |
aNumberNode(java.lang.Object... pathElements) |
static JsonNodeSelector<JsonNode,JsonNode> |
anyNode(java.lang.Object... pathElements) |
static JsonNodeSelector<JsonNode,java.lang.String> |
aStringNode(java.lang.Object... pathElements) |
public static JsonNodeSelector<JsonNode,JsonNode> anyNode(java.lang.Object... pathElements)
public static JsonNodeSelector<JsonNode,java.lang.String> aStringNode(java.lang.Object... pathElements)
public static JsonNodeSelector<JsonNode,java.lang.String> aNullableStringNode(java.lang.Object... pathElements)
public static JsonNodeSelector<JsonNode,java.lang.String> aNumberNode(java.lang.Object... pathElements)
public static JsonNodeSelector<JsonNode,java.lang.String> aNullableNumberNode(java.lang.Object... pathElements)
public static JsonNodeSelector<JsonNode,java.lang.Boolean> aBooleanNode(java.lang.Object... pathElements)
public static JsonNodeSelector<JsonNode,java.lang.Boolean> aNullableBooleanNode(java.lang.Object... pathElements)
public static JsonNodeSelector<JsonNode,JsonNode> aNullNode(java.lang.Object... pathElements)
public static JsonNodeSelector<JsonNode,java.util.List<JsonNode>> anArrayNode(java.lang.Object... pathElements)
public static JsonNodeSelector<JsonNode,java.util.List<JsonNode>> aNullableArrayNode(java.lang.Object... pathElements)
public static JsonNodeSelector<JsonNode,java.util.Map<JsonStringNode,JsonNode>> anObjectNode(java.lang.Object... pathElements)
public static JsonNodeSelector<JsonNode,java.util.Map<JsonStringNode,JsonNode>> aNullableObjectNode(java.lang.Object... pathElements)
public static JsonNodeSelector<java.util.Map<JsonStringNode,JsonNode>,JsonNode> aField(java.lang.String fieldName)
public static JsonNodeSelector<java.util.Map<JsonStringNode,JsonNode>,JsonNode> aField(JsonStringNode fieldName)
public static JsonNodeSelector<JsonNode,JsonNode> anObjectNodeWithField(JsonStringNode fieldName)
public static JsonNodeSelector<JsonNode,JsonNode> anObjectNodeWithField(java.lang.String fieldName)
public static JsonNodeSelector<java.util.List<JsonNode>,JsonNode> anElement(int index)
public static JsonNodeSelector<JsonNode,JsonNode> anArrayNodeWithElement(int index)