Uses of Class
tools.jackson.databind.node.ArrayNode
Packages that use ArrayNode
Package
Description
Basic data binding (mapping) functionality that
allows for reading JSON content into Java Objects (POJOs)
and JSON Trees (
JsonNode), as well as
writing Java Objects and trees as JSON.Contains concrete
JsonNode implementations
Jackson uses for the Tree model.Utility classes for Mapper package.
-
Uses of ArrayNode in tools.jackson.databind
Methods in tools.jackson.databind that return ArrayNodeModifier and TypeMethodDescriptionObjectMapper.createArrayNode()Note: return type is co-variant, as basicTreeCodecabstraction cannot refer to concrete node types (as it's part of core package, whereas impls are part of mapper package)ObjectReader.createArrayNode()ObjectWriter.createArrayNode()Short-cut equivalent to:JsonNode.withArray(String expr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) Short-cut equivalent to:final ArrayNodeJsonNode.withArray(JsonPointer ptr) Same asJsonNode.withArray(JsonPointer, OverwriteMode, boolean)but with defaults ofOvewriteMode#NULLS(overwrite mode) andtrueforpreferIndex.JsonNode.withArray(JsonPointer ptr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) Method that can be called on Object or Array nodes, to access a Array-valued node pointed to by givenJsonPointer, if such a node exists: or if not, an attempt is made to create one and return it.JsonNode.withArrayProperty(String propName) Method similar toJsonNode.withArray(JsonPointer, OverwriteMode, boolean)-- basically short-cut to: -
Uses of ArrayNode in tools.jackson.databind.node
Methods in tools.jackson.databind.node that return ArrayNodeModifier and TypeMethodDescriptionprotected ArrayNodeprotected ArrayNodeprotected ArrayNodeprotected ArrayNodeArrayNode._withArray(JsonPointer origPtr, JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ArrayNodeBaseJsonNode._withArray(JsonPointer origPtr, JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ArrayNodeObjectNode._withArray(JsonPointer origPtr, JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ArrayNodeArrayNode._withArrayAddTailElement(JsonPointer tail, boolean preferIndex) protected ArrayNodeObjectNode._withArrayAddTailProperty(JsonPointer tail, boolean preferIndex) ArrayNode.add(boolean v) Method for adding specified boolean value at the end of this array.ArrayNode.add(byte[] v) Method for adding specified binary value at the end of this array (note: when serializing as JSON, will be output Base64 encoded)ArrayNode.add(double v) Method for adding specified number at the end of this array.ArrayNode.add(float v) Method for adding specified number at the end of this array.ArrayNode.add(int v) Method for adding specified number at the end of this array.ArrayNode.add(long v) Method for adding specified number at the end of this array.ArrayNode.add(short v) Method for adding specified number at the end of this array.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Method for adding specified String value at the end of this array.ArrayNode.add(BigDecimal v) Method for adding specified number at the end of this array.ArrayNode.add(BigInteger v) Method for adding specified number at the end of this array.Method for adding specified node at the end of this array.ArrayNode.addAll(Collection<? extends JsonNode> nodes) Method for adding given nodes as child nodes of this array node.Method for adding all child nodes of given Array, appending to child nodes this array containsArrayNode.addArray()Method that will construct an ArrayNode and add it at the end of this array node.ArrayNode.addNull()Method that will add a null value at the end of this array node.Method that will construct a POJONode and add it at the end of this array node.ArrayNode.addRawValue(RawValue raw) final ArrayNodeContainerNode.arrayNode()Factory method that constructs and returns an emptyArrayNodeConstruction is done using registeredJsonNodeFactory.final ArrayNodeContainerNode.arrayNode(int capacity) Factory method that constructs and returns anArrayNodewith an initial capacity Construction is done using registeredJsonNodeFactoryJsonNodeCreator.arrayNode()JsonNodeCreator.arrayNode(int capacity) Factory method for constructing a JSON Array node with an initial capacityJsonNodeFactory.arrayNode()Factory method for constructing an empty JSON Array nodeJsonNodeFactory.arrayNode(int capacity) Factory method for constructing a JSON Array node with an initial capacityArrayNode.deepCopy()ArrayNode.insert(int index, boolean v) Method that will insert specified String at specified position in this array.ArrayNode.insert(int index, byte[] v) Method that will insert specified binary value at specified position in this array (note: when written as JSON, will be Base64 encoded)ArrayNode.insert(int index, double v) Method that will insert specified numeric value at specified position in this array.ArrayNode.insert(int index, float v) Method that will insert specified numeric value at specified position in this array.ArrayNode.insert(int index, int v) Method that will insert specified numeric value at specified position in this array.ArrayNode.insert(int index, long v) Method that will insert specified numeric value at specified position in this array.ArrayNode.insert(int index, short v) Method that will insert specified numeric value at specified position in this array.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Method that will insert specified String at specified position in this array.ArrayNode.insert(int index, BigDecimal v) Method that will insert specified numeric value at specified position in this array.ArrayNode.insert(int index, BigInteger v) Method that will insert specified numeric value at specified position in this array.Method for inserting specified child node as an element of this Array.ArrayNode.insertArray(int index) Method for creating an array node, inserting it at the specified point in the array, and returning the newly created array (note: NOT 'this' array)ArrayNode.insertNull(int index) Method that will insert a null value at specified position in this array.ArrayNode.insertPOJO(int index, Object pojo) Method that will construct a POJONode and insert it at specified position in this array.ArrayNode.insertRawValue(int index, RawValue raw) Method that will construct an ArrayNode and add it as a property of thisObjectNode, replacing old value, if any.ArrayNode.removeAll()Method for removing all elements of this array, leaving the array empty.ArrayNode.set(int index, boolean v) Method for setting value of a field to specified String value.ArrayNode.set(int index, byte[] v) Method for setting value of a field to specified binary valueArrayNode.set(int index, double v) Method for setting value of a field to specified numeric value.ArrayNode.set(int index, float v) Method for setting value of a field to specified numeric value.ArrayNode.set(int index, int v) ArrayNode.set(int index, long v) ArrayNode.set(int index, short v) Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Method for setting value of a field to specified String value.ArrayNode.set(int index, BigDecimal v) Method for setting value of a field to specified numeric value.ArrayNode.set(int index, BigInteger v) Method for setting value of a field to specified numeric value.Method that will set specified element, replacing old value.ArrayNode.setNull(int index) ArrayNode.setRawValue(int index, RawValue raw) BaseJsonNode.withArray(JsonPointer ptr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) ObjectNode.withArrayProperty(String propName) Methods in tools.jackson.databind.node with parameters of type ArrayNodeModifier and TypeMethodDescriptionprotected booleanArrayNode._childrenEqual(ArrayNode other) Method for adding all child nodes of given Array, appending to child nodes this array contains -
Uses of ArrayNode in tools.jackson.databind.util
Methods in tools.jackson.databind.util that return types with arguments of type ArrayNodeModifier and TypeMethodDescriptionJacksonCollectors.toArrayNode()JacksonCollectors.toArrayNode()JacksonCollectors.toArrayNode(JsonNodeCreator nodeCreator) JacksonCollectors.toArrayNode(JsonNodeCreator nodeCreator)