Class JsonPointerIterator
- java.lang.Object
-
- io.vertx.mutiny.core.json.pointer.JsonPointerIterator
-
public class JsonPointerIterator extends Object
The JsonPointerIterator is used by the read/write algorithms of theJsonPointerto read/write the querying data structure
Every method takes the currentValue as parameter, representing the actual value held by the query algorithm.
Implementations of this interface should be stateless, so they can be reused
You can implement this interface to query the structure you want using json pointers NOTE: This class has been automatically generated from theoriginalnon Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<JsonPointerIterator>__TYPE_ARGstatic JsonPointerIteratorJSON_ITERATORInstance of a JsonPointerIterator to query Vert.x Json structures
-
Constructor Summary
Constructors Constructor Description JsonPointerIterator(io.vertx.core.json.pointer.JsonPointerIterator delegate)JsonPointerIterator(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanappendArrayElement(Object currentValue, Object value)booleanequals(Object o)ObjectgetArrayElement(Object currentValue, int i)io.vertx.core.json.pointer.JsonPointerIteratorgetDelegate()ObjectgetObjectParameter(Object currentValue, String key, boolean createOnMissing)inthashCode()booleanisArray(Object currentValue)booleanisNull(Object currentValue)booleanisObject(Object currentValue)static JsonPointerIteratornewInstance(io.vertx.core.json.pointer.JsonPointerIterator arg)booleanobjectContainsKey(Object currentValue, String key)StringtoString()booleanwriteArrayElement(Object currentValue, int i, Object value)booleanwriteObjectParameter(Object currentValue, String key, Object value)
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<JsonPointerIterator> __TYPE_ARG
-
JSON_ITERATOR
public static final JsonPointerIterator JSON_ITERATOR
Instance of a JsonPointerIterator to query Vert.x Json structures
-
-
Constructor Detail
-
JsonPointerIterator
public JsonPointerIterator(io.vertx.core.json.pointer.JsonPointerIterator delegate)
-
JsonPointerIterator
public JsonPointerIterator(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.core.json.pointer.JsonPointerIterator getDelegate()
-
isObject
public boolean isObject(Object currentValue)
- Parameters:
currentValue-- Returns:
trueif the current value is a queryable object
-
isArray
public boolean isArray(Object currentValue)
- Parameters:
currentValue-- Returns:
trueif the current value is a queryable array
-
isNull
public boolean isNull(Object currentValue)
- Parameters:
currentValue-- Returns:
trueif the current value is null/empty
-
objectContainsKey
public boolean objectContainsKey(Object currentValue, String key)
- Parameters:
currentValue-key- object key- Returns:
trueif current value is a queryable object that contains the specified key
-
getObjectParameter
public Object getObjectParameter(Object currentValue, String key, boolean createOnMissing)
- Parameters:
currentValue-key- object keycreateOnMissing- If the current value is an object that doesn't contain the key, put an empty object at provided key- Returns:
- the requested object parameter, or null if the method was not able to find it
-
getArrayElement
public Object getArrayElement(Object currentValue, int i)
- Parameters:
currentValue-i- array index- Returns:
- the request array element, or null if the method was not able to find it
-
writeObjectParameter
public boolean writeObjectParameter(Object currentValue, String key, Object value)
- Parameters:
currentValue-key-value-- Returns:
- true if the operation is successful
-
writeArrayElement
public boolean writeArrayElement(Object currentValue, int i, Object value)
- Parameters:
currentValue-i-value-- Returns:
- true if the operation is successful
-
appendArrayElement
public boolean appendArrayElement(Object currentValue, Object value)
- Parameters:
currentValue-value-- Returns:
- true if the operation is successful
-
newInstance
public static JsonPointerIterator newInstance(io.vertx.core.json.pointer.JsonPointerIterator arg)
-
-