public interface JsonPointerIterator
JsonPointer
to read/write the querying data structure Modifier and Type | Field and Description |
---|---|
static JsonPointerIterator |
JSON_ITERATOR
Instance of a JsonPointerIterator to query Vert.x Json structures
|
Modifier and Type | Method and Description |
---|---|
boolean |
appendArrayElement(Object currentValue,
Object value)
Append array element
|
Object |
getArrayElement(Object currentValue,
int i)
Move the iterator the array element at specified index
|
Object |
getObjectParameter(Object currentValue,
String key,
boolean createOnMissing)
Returns the object parameter with specified key.
|
boolean |
isArray(Object currentValue) |
boolean |
isNull(Object currentValue) |
boolean |
isObject(Object currentValue) |
boolean |
objectContainsKey(Object currentValue,
String key) |
boolean |
writeArrayElement(Object currentValue,
int i,
Object value)
Write array element at specified index
|
boolean |
writeObjectParameter(Object currentValue,
String key,
Object value)
Write object parameter at specified key
|
static final JsonPointerIterator JSON_ITERATOR
boolean isObject(Object currentValue)
currentValue
- true
if the current value is a queryable objectboolean isArray(Object currentValue)
currentValue
- true
if the current value is a queryable arrayboolean isNull(Object currentValue)
currentValue
- true
if the current value is null/emptyboolean objectContainsKey(Object currentValue, String key)
currentValue
- key
- object keytrue
if current value is a queryable object that contains the specified keyObject getObjectParameter(Object currentValue, String key, boolean createOnMissing)
currentValue
- key
- object keycreateOnMissing
- If the current value is an object that doesn't contain the key, put an empty object at provided keyObject getArrayElement(Object currentValue, int i)
currentValue
- i
- array indexboolean writeObjectParameter(Object currentValue, String key, Object value)
currentValue
- key
- value
- boolean writeArrayElement(Object currentValue, int i, Object value)
currentValue
- i
- value
- Copyright © 2024 Eclipse. All rights reserved.