| Modifier and Type | Field and Description |
|---|---|
| protected final JsonNodeFactory | _nodeFactory
We will keep a reference to the Object (usually TreeMapper) that can construct instances of nodes to add to this container node. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract ObjectNode | _withObject(JsonPointer origPtr, JsonPointer currentPtr, JsonNode.
Overrides com.
|
| public final ArrayNode | arrayNode()
Implements com. Factory method that constructs and returns an empty |
| public final ArrayNode | arrayNode(int
the initial capacity of the ArrayNode capacity)Implements com. Factory method that constructs and returns an |
| public String | asText()
Implements abstract com. Method that will return a valid String representation of
the container value, if the node is a value node
(method |
| public abstract JsonToken | asToken()
Redeclares com. Implements abstract com. Method that can be used for efficient type detection when using stream abstraction for traversing nodes. |
| public final BinaryNode | |
| public final BinaryNode | binaryNode(byte[] data, int offset, int length)
Implements com.
|
| public final BooleanNode | |
| public abstract JsonNode | get(int
Index of the Array node element to access index)Redeclares com. Implements abstract com. Method for accessing value of the specified element of an array node. |
| public abstract JsonNode | get(String
Name of the field (of Object node) to access fieldName)Redeclares com. Overrides com. Method for accessing value of the specified field of an object node. |
| public JsonNode | |
| public final NullNode | |
| public final NumericNode | |
| public final NumericNode | |
| public final NumericNode | |
| public final NumericNode | |
| public final NumericNode | |
| public final NumericNode | |
| public final ValueNode | |
| public final ValueNode | |
| public final ValueNode | |
| public final ValueNode | |
| public final ValueNode | |
| public final ValueNode | |
| public final ValueNode | |
| public final ValueNode | |
| public final ObjectNode | objectNode()
Implements com. Factory method that constructs and returns an empty |
| public final ValueNode | |
| public final ValueNode | rawValueNode(RawValue value)
Implements com. Factory method to use for adding "raw values"; pre-encoded values that are included exactly as-is when node is serialized. |
| public abstract T | Returns: Container node itself (to allow method call chaining)Method for removing all children container has (if any) |
| public abstract int | size()
Redeclares com. Overrides com. Method that returns number of child nodes this node contains: for Array nodes, number of child elements, for Object nodes, number of fields, and for all other nodes 0. |
| public final TextNode |
| _nodeFactory | back to summary |
|---|---|
| protected final JsonNodeFactory _nodeFactory We will keep a reference to the Object (usually TreeMapper) that can construct instances of nodes to add to this container node. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| ContainerNode | back to summary |
|---|---|
| protected ContainerNode(JsonNodeFactory nc) | |
| ContainerNode | back to summary |
|---|---|
| protected ContainerNode() | |
| _withObject | back to summary |
|---|---|
| protected abstract ObjectNode _withObject(JsonPointer origPtr, JsonPointer currentPtr, JsonNode. Overrides com.
| |
| arrayNode | back to summary |
|---|---|
| public final ArrayNode arrayNode() Implements com. Factory method that constructs and returns an empty
| |
| arrayNode | back to summary |
|---|---|
| public final ArrayNode arrayNode(int capacity) Implements com. Factory method that constructs and returns an
| |
| asText | back to summary |
|---|---|
| public String asText() Implements abstract com. Doc from com. Method that will return a valid String representation of
the container value, if the node is a value node
(method
| |
| asToken | back to summary |
|---|---|
| public abstract JsonToken asToken() Redeclares com. Implements abstract com. Doc from com. Method that can be used for efficient type detection
when using stream abstraction for traversing nodes.
Will return the first
| |
| binaryNode | back to summary |
|---|---|
| public final BinaryNode binaryNode(byte[] data) Implements com.
| |
| binaryNode | back to summary |
|---|---|
| public final BinaryNode binaryNode(byte[] data, int offset, int length) Implements com.
| |
| booleanNode | back to summary |
|---|---|
| public final BooleanNode booleanNode(boolean v) Implements com.
| |
| get | back to summary |
|---|---|
| public abstract JsonNode get(int index) Redeclares com. Implements abstract com. Doc from com. Method for accessing value of the specified element of an array node. For other nodes, null is always returned.
For array nodes, index specifies
exact location within array and allows for efficient iteration
over child elements (underlying storage is guaranteed to
be efficiently indexable, i.e. has random-access to elements).
If index is less than 0, or equal-or-greater than
Note if the element value has been explicitly set as
| |
| get | back to summary |
|---|---|
| public abstract JsonNode get(String fieldName) Redeclares com. Overrides com. Doc from com. Method for accessing value of the specified field of an object node. If this node is not an object (or it does not have a value for specified field name), or if there is no field with such name, null is returned. Note if the property value has been explicitly set as
| |
| missingNode | back to summary |
|---|---|
| public JsonNode missingNode() | |
| nullNode | back to summary |
|---|---|
| public final NullNode nullNode() Implements com.
| |
| numberNode | back to summary |
|---|---|
| public final NumericNode numberNode(byte v) Implements com.
| |
| numberNode | back to summary |
|---|---|
| public final NumericNode numberNode(short v) Implements com.
| |
| numberNode | back to summary |
|---|---|
| public final NumericNode numberNode(int v) Implements com.
| |
| numberNode | back to summary |
|---|---|
| public final NumericNode numberNode(long v) Implements com.
| |
| numberNode | back to summary |
|---|---|
| public final NumericNode numberNode(float v) Implements com.
| |
| numberNode | back to summary |
|---|---|
| public final NumericNode numberNode(double v) Implements com.
| |
| numberNode | back to summary |
|---|---|
| public final ValueNode numberNode(BigInteger v) Implements com.
| |
| numberNode | back to summary |
|---|---|
| public final ValueNode numberNode(BigDecimal v) Implements com.
| |
| numberNode | back to summary |
|---|---|
| public final ValueNode numberNode(Byte v) Implements com.
| |
| numberNode | back to summary |
|---|---|
| public final ValueNode numberNode(Short v) Implements com.
| |
| numberNode | back to summary |
|---|---|
| public final ValueNode numberNode(Integer v) Implements com.
| |
| numberNode | back to summary |
|---|---|
| public final ValueNode numberNode(Long v) Implements com.
| |
| numberNode | back to summary |
|---|---|
| public final ValueNode numberNode(Float v) Implements com.
| |
| numberNode | back to summary |
|---|---|
| public final ValueNode numberNode(Double v) Implements com.
| |
| objectNode | back to summary |
|---|---|
| public final ObjectNode objectNode() Implements com. Factory method that constructs and returns an empty
| |
| pojoNode | back to summary |
|---|---|
| public final ValueNode pojoNode(Object pojo) Implements com.
| |
| rawValueNode | back to summary |
|---|---|
| public final ValueNode rawValueNode(RawValue value) Implements com. Doc from com. Factory method to use for adding "raw values"; pre-encoded values that are included exactly as-is when node is serialized. This may be used, for example, to include fully serialized JSON sub-trees. Note that the concept may not work with all backends, and since no translation of any kinds is done it will not work when converting between data formats.
| |
| removeAll | back to summary |
|---|---|
| public abstract T removeAll() Method for removing all children container has (if any)
| |
| size | back to summary |
|---|---|
| public abstract int size() Redeclares com. Overrides com. Doc from com. Method that returns number of child nodes this node contains: for Array nodes, number of child elements, for Object nodes, number of fields, and for all other nodes 0.
| |
| textNode | back to summary |
|---|---|
| public final TextNode textNode(String text) Implements com.
| |