Note
class was final temporarily for Jackson 2.2.
| Modifier and Type | Field and Description |
|---|---|
| protected final Map | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected JsonNode | _at(JsonPointer
Path expression to use ptr)Implements abstract com. null is returned.
|
| protected boolean | |
| protected Map | _contentsToSerialize(SerializerProvider ctxt)
Helper method for encapsulating details of accessing child node entries to serialize. |
| protected ObjectNode | |
| protected ArrayNode | _withArray(JsonPointer origPtr, JsonPointer currentPtr, JsonNode.
Overrides com. |
| protected ArrayNode | |
| protected ObjectNode | _withObject(JsonPointer origPtr, JsonPointer currentPtr, JsonNode.
Implements abstract com. |
| protected ObjectNode | |
| public JsonToken | asToken()
Implements abstract com. Implements com. |
| public ObjectNode | deepCopy()
Implements abstract com. |
| public Iterator | elements()
Method for accessing all value nodes of this Node, iff
this node is a JSON Array or Object node.
|
| public boolean | equals(Comparator<JsonNode>
Object called to compare two scalar comparator, JsonNode o)JsonNode
instances, and return either 0 (are equals) or non-zero (not equal)Overrides com. Comparator object.
|
| public boolean | equals(Object
the reference object with which to compare. o)Implements abstract com. |
| public Iterator | fieldNames()
Overrides com. Implements com. |
| public Iterator | fields()
Method to use for accessing all properties (with both names
and values) of this JSON Object.
|
| public ObjectNode | findParent(String
Name of field to look for propertyName)Implements abstract com. |
| public List | findParents(String propertyName, List<JsonNode> foundSoFar)
Implements abstract com. |
| public JsonNode | findValue(String
Name of field to look for propertyName)Implements abstract com. |
| public List | findValues(String propertyName, List<JsonNode> foundSoFar)
Implements abstract com. |
| public List | findValuesAsText(String propertyName, List<String> foundSoFar)
Implements abstract com. |
| public JsonNode | get(int
Index of the Array node element to access index)Implements abstract com. Implements com. |
| public JsonNode | get(String
Name of the field (of Object node) to access propertyName)Implements abstract com. Implements com. |
| public JsonNodeType | getNodeType()
Implements abstract com. |
| public int | hashCode()
Implements abstract com. |
| public boolean | isEmpty(SerializerProvider serializers)
Overrides com. |
| public boolean | isEmpty()
Overrides com.
size() == 0
|
| public final boolean | isObject()
Overrides com. Implements com. |
| public JsonNode | path(int
Index of the Array node element to access index)Implements abstract com. Implements com. get(int), except
that instead of returning null if no such element exists (due
to index being out of range, or this node not being an array),
a "missing node" (node that returns true for
isMissingNode) will be returned.
|
| public JsonNode | path(String
Name of the field (of Object node) to access propertyName)Implements abstract com. Implements com. get(String), except
that instead of returning null if no such value exists (due
to this node not being an object, or object not having value
for the specified field),
a "missing node" (node that returns true for
isMissingNode) will be returned.
|
| public Set | properties()
Overrides com. |
| public JsonNode | Returns: Old value of the property, if any;null if there was no
old value.Name of property to set propertyName, JsonNode value)
Deprecated
Since 2.4 use either
Method that will set specified property, replacing old value, if any.
set(String, JsonNode) or replace(String, JsonNode),
|
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | Returns: This node (to allow chaining)Method for setting value of a field to specified numeric value. |
| public ObjectNode | Returns: This node (to allow chaining)Method for setting value of a field to specified numeric value. |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public JsonNode | Returns: This node after adding/replacing property values (to allow chaining)Properties to add properties)
Deprecated
Since 2.4 use
Method for adding given properties to this object node, overriding
any existing values for those properties.
setAll(Map),
|
| public JsonNode | Returns: This node (to allow chaining)Object of which properties to add to this object other)
Deprecated
Since 2.4 use
Method for adding all properties of the given Object, overriding
any existing values for those properties.
setAll(ObjectNode),
|
| public ArrayNode | |
| public JsonNode | Returns: Old value of the property, if any (in which case value was not changed); null if there was no old value (in which case value is now set)Name of property to set propertyName, JsonNode Value to set to property (if and only if it had no value previously);
if null, will be converted to a value)NullNode first.Method that will set value of specified property if (and only if) it had no set value previously. |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public JsonNode | |
| public ObjectNode | Returns: This node after removing entriesNames of fields to remove propertyNames)Method for removing specified field properties out of this ObjectNode. |
| public ObjectNode | Returns: This node after removing all entriesImplements abstract com. |
| public JsonNode | Returns: Old value of the property; null if there was no such property with valueProperty of which value to replace propertyName, JsonNode Value to set property to, replacing old value if any value)Method for replacing value of specific property with passed value, and returning value (or null if none). |
| public JsonNode | required(String
Name of property to access propertyName)Overrides com. path(fieldName).required()
and can be used to check that this node is an ObjectNode (that is, represents
JSON Object value) and has value for specified property with key fieldName
(but note that value may be explicit JSON null value).
|
| public ObjectNode | Returns: This node (to allow call chaining)Fields to retain in this ObjectNode propertyNames)Method for removing all properties out of this ObjectNode except for ones specified in argument. |
| public ObjectNode | |
| public void | serialize(JsonGenerator g, SerializerProvider provider)
Implements abstract com. Implements com. |
| protected void | serializeFilteredContents(final JsonGenerator g, final SerializerProvider ctxt, final boolean trimEmptyArray, final boolean skipNulls)
Helper method shared and called by |
| public void | serializeWithType(JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
Implements abstract com. Implements com. |
| public <T extends JsonNode> T | |
| public <T extends JsonNode> T | |
| public <T extends JsonNode> T | Returns: This node after addition (to allow chaining)Object of which properties to add to this object other)Method for adding all properties of the given Object, overriding any existing values for those properties. |
| public int | size()
Implements abstract com. Implements com. |
| public ObjectNode | with(String exprOrProperty)
Overrides com.
Deprecated
Method that works in one of possible ways, depending on whether
exprOrProperty is a valid JsonPointer expression or
not (valid expression is either empty String "" or starts
with leading slash / character).
|
| public ArrayNode | withArray(String
Either exprOrProperty)JsonPointer expression for full access (if valid
pointer expression), or the name of property for the ArrayNode.Overrides com. exprOrProperty is a valid JsonPointer expression or
not (valid expression is either empty String "" or starts
with leading slash / character).
|
| public ArrayNode | withArrayProperty(String
Name of property that has or will have propName)ArrayNode as valueOverrides com. withArray(JsonPointer, OverwriteMode, boolean) -- basically
short-cut to:
withArray(JsonPointer.compile("/"+propName), OverwriteMode.NULLS, false);
|
| public ObjectNode | withObject(String
JsonPointer expression to use (if valid as one),
or, if not (no leading "/"), property name to match.Overrides com. exprOrProperty is a valid JsonPointer expression or
not (valid expression is either empty String "" or starts
with leading slash / character).
|
| public ObjectNode | withObjectProperty(String
Name of property that has or will have propName)ObjectNode as valueOverrides com. withObject(JsonPointer, OverwriteMode, boolean) -- basically
short-cut to:
withObject(JsonPointer.compile("/"+propName), OverwriteMode.NULLS, false);
|
| public <T extends JsonNode> T | |
| public <T extends JsonNode> T | Returns: This node after removing entriesNames of properties to remove propertyNames)Method for removing specified field properties out of this ObjectNode. |