@Immutable public final class JsonNodeResolver extends TokenResolver<JsonNode>
TokenResolver
for JsonNode
The JSON Pointer specification specifies that for arrays, indices must
not have leading zeroes (save for 0
itself). This class handles
this.
token
Constructor and Description |
---|
JsonNodeResolver(ReferenceToken token) |
public JsonNodeResolver(ReferenceToken token)
public JsonNode get(JsonNode node)
TokenResolver
Note: it is required that this method return null on traversal failure.
Note 2: handling null
itself is up to implementations.
get
in class TokenResolver<JsonNode>
node
- the node to traversenull
if no such node exists for that
tokenCopyright © 2013. All Rights Reserved.