Class JsonPointer
java.lang.Object
io.vertx.mutiny.core.json.pointer.JsonPointer
- All Implemented Interfaces:
MutinyDelegate
Implementation of RFC6901 Json Pointers.
NOTE: This class has been automatically generated from the
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJsonPointer
(io.vertx.core.json.pointer.JsonPointer delegate) JsonPointer
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionappend
(int index) append
(JsonPointer pointer) copy()
static JsonPointer
create()
boolean
static JsonPointer
static JsonPointer
io.vertx.core.json.pointer.JsonPointer
int
hashCode()
boolean
boolean
isParent
(JsonPointer child) boolean
static JsonPointer
newInstance
(io.vertx.core.json.pointer.JsonPointer arg) parent()
query
(Object objectToQuery, JsonPointerIterator iterator) queryJsonOrDefault
(Object jsonElement, Object defaultValue) queryOrDefault
(Object objectToQuery, JsonPointerIterator iterator, Object defaultValue) toString()
toURI()
tracedQuery
(Object objectToQuery, JsonPointerIterator iterator) write
(Object objectToWrite, JsonPointerIterator iterator, Object newElement, boolean createOnMissing)
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
JsonPointer
public JsonPointer(io.vertx.core.json.pointer.JsonPointer delegate) -
JsonPointer
-
-
Method Details
-
getDelegate
public io.vertx.core.json.pointer.JsonPointer getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
equals
-
hashCode
public int hashCode() -
isRootPointer
public boolean isRootPointer()- Returns:
-
isLocalPointer
public boolean isLocalPointer()- Returns:
-
isParent
- Parameters:
child
-- Returns:
-
toString
-
append
- Parameters:
token
- the unescaped reference token- Returns:
- a reference to this, so the API can be used fluently
-
append
- Parameters:
index
-- Returns:
- a reference to this, so the API can be used fluently
-
append
- Parameters:
tokens
- unescaped reference tokens- Returns:
- a reference to this, so the API can be used fluently
-
append
- Parameters:
pointer
- other pointer- Returns:
- a reference to this, so the API can be used fluently
-
parent
- Returns:
- a reference to this, so the API can be used fluently
-
query
- Parameters:
objectToQuery
- the object to queryiterator
- the json pointer iterator that provides the logic to access to the objectToQuery- Returns:
- null if pointer points to not existing value, otherwise the requested value
-
queryOrDefault
public Object queryOrDefault(Object objectToQuery, JsonPointerIterator iterator, Object defaultValue) - Parameters:
objectToQuery
- the object to queryiterator
- the json pointer iterator that provides the logic to access to the objectToQuerydefaultValue
- default value if query result is null- Returns:
- null if pointer points to not existing value, otherwise the requested value
-
queryJson
- Parameters:
jsonElement
- the json element to query- Returns:
- null if pointer points to not existing value, otherwise the requested value
-
queryJsonOrDefault
- Parameters:
jsonElement
- the json element to querydefaultValue
- default value if query result is null- Returns:
- null if pointer points to not existing value, otherwise the requested value
-
tracedQuery
- Parameters:
objectToQuery
- the object to queryiterator
- the json pointer iterator that provides the logic to access to the objectToQuery- Returns:
- the stream of walked elements
-
write
public Object write(Object objectToWrite, JsonPointerIterator iterator, Object newElement, boolean createOnMissing) - Parameters:
objectToWrite
- object to writeiterator
- the json pointer iterator that provides the logic to access to the objectToMutatenewElement
- object to insertcreateOnMissing
- create objects when missing a object key or an array index- Returns:
- a reference to objectToWrite if the write was completed, a reference to newElement if the pointer is a root pointer, null if the write failed
-
writeJson
- Parameters:
jsonElement
- json element to query and writenewElement
- json to insert- Returns:
- a reference to json if the write was completed, a reference to newElement if the pointer is a root pointer, null if the write failed
-
writeJson
- Parameters:
jsonElement
- json to query and writenewElement
- json to insertcreateOnMissing
- create JsonObject when missing a object key or an array index- Returns:
- a reference to json if the write was completed, a reference to newElement if the pointer is a root pointer, null if the write failed
-
copy
- Returns:
- a copy of this pointer
-
create
- Returns:
- a new empty JsonPointer
-
from
- Parameters:
pointer
- the string representing a pointer- Returns:
- new instance of JsonPointer
-
toURI
- Returns:
-
getURIWithoutFragment
- Returns:
-
fromURI
- Parameters:
uri
- uri representing a json pointer- Returns:
- new instance of JsonPointer
-
newInstance
-