Uses of Class
com.fasterxml.jackson.databind.node.ObjectNode
-
Packages that use ObjectNode Package Description com.fasterxml.jackson.databind 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.com.fasterxml.jackson.databind.jsonschema Classes needed for JSON schema support (currently just ability to generate schemas using serialization part of data mapping)com.fasterxml.jackson.databind.node Contains concreteJsonNode
implementations Jackson uses for the Tree model.com.fasterxml.jackson.databind.ser Contains implementation classes of serialization part of data binding.com.fasterxml.jackson.databind.ser.impl Contains implementation classes of serialization part of data binding.com.fasterxml.jackson.databind.ser.std -
-
Uses of ObjectNode in com.fasterxml.jackson.databind
Methods in com.fasterxml.jackson.databind that return ObjectNode Modifier and Type Method Description ObjectNode
ObjectMapper. createObjectNode()
Note: return type is co-variant, as basic ObjectCodec abstraction cannot refer to concrete node types (as it's part of core package, whereas impls are part of mapper package)ObjectNode
JsonNode. withObject(com.fasterxml.jackson.core.JsonPointer ptr)
Same asJsonNode.withObject(JsonPointer, OverwriteMode, boolean)
but with defaults ofOvewriteMode#NULLS
(overwrite mode) andtrue
forpreferIndex
(that is, will try to considerJsonPointer
segments index if at all possible and only secondarily as property nameObjectNode
JsonNode. withObject(com.fasterxml.jackson.core.JsonPointer ptr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex)
Method that can be called on Object or Array nodes, to access a Object-valued node pointed to by givenJsonPointer
, if such a node exists: or if not, an attempt is made to create one and return it.ObjectNode
JsonNode. withObject(java.lang.String exprOrProperty)
Method that works in one of possible ways, depending on whetherexprOrProperty
is a validJsonPointer
expression or not (valid expression is either empty String""
or starts with leading slash/
character).ObjectNode
JsonNode. withObject(java.lang.String expr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex)
Short-cut equivalent to:ObjectNode
JsonNode. withObjectProperty(java.lang.String propName)
Method similar toJsonNode.withObject(JsonPointer, OverwriteMode, boolean)
-- basically short-cut to: -
Uses of ObjectNode in com.fasterxml.jackson.databind.jsonschema
Methods in com.fasterxml.jackson.databind.jsonschema that return ObjectNode Modifier and Type Method Description ObjectNode
JsonSchema. getSchemaNode()
Deprecated.Method for accessing root JSON object of the contained schema.Constructors in com.fasterxml.jackson.databind.jsonschema with parameters of type ObjectNode Constructor Description JsonSchema(ObjectNode schema)
Deprecated.Main constructor for schema instances. -
Uses of ObjectNode in com.fasterxml.jackson.databind.node
Methods in com.fasterxml.jackson.databind.node that return ObjectNode Modifier and Type Method Description protected ObjectNode
ObjectNode. _put(java.lang.String fieldName, JsonNode value)
protected ObjectNode
ArrayNode. _withObject(com.fasterxml.jackson.core.JsonPointer origPtr, com.fasterxml.jackson.core.JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex)
protected ObjectNode
BaseJsonNode. _withObject(com.fasterxml.jackson.core.JsonPointer origPtr, com.fasterxml.jackson.core.JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex)
protected abstract ObjectNode
ContainerNode. _withObject(com.fasterxml.jackson.core.JsonPointer origPtr, com.fasterxml.jackson.core.JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex)
protected ObjectNode
ObjectNode. _withObject(com.fasterxml.jackson.core.JsonPointer origPtr, com.fasterxml.jackson.core.JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex)
protected ObjectNode
ArrayNode. _withObjectAddTailElement(com.fasterxml.jackson.core.JsonPointer tail, boolean preferIndex)
protected ObjectNode
ObjectNode. _withObjectAddTailProperty(com.fasterxml.jackson.core.JsonPointer tail, boolean preferIndex)
ObjectNode
ArrayNode. addObject()
Method that will construct an ObjectNode and add it at the end of this array node.ObjectNode
ObjectNode. deepCopy()
ObjectNode
ArrayNode. findParent(java.lang.String fieldName)
ObjectNode
ObjectNode. findParent(java.lang.String propertyName)
ObjectNode
ValueNode. findParent(java.lang.String fieldName)
ObjectNode
ArrayNode. insertObject(int index)
Method for creating anObjectNode
, appending it at the end of this array, and returning the newly created node (note: NOT 'this' array)ObjectNode
ContainerNode. objectNode()
Factory method that constructs and returns an emptyObjectNode
Construction is done using registeredJsonNodeFactory
.ObjectNode
JsonNodeCreator. objectNode()
ObjectNode
JsonNodeFactory. objectNode()
Factory method for constructing an empty JSON Object ("struct") nodeObjectNode
ObjectNode. put(java.lang.String fieldName, boolean v)
Method for setting value of a field to specified String value.ObjectNode
ObjectNode. put(java.lang.String fieldName, byte[] v)
Method for setting value of a field to specified binary valueObjectNode
ObjectNode. put(java.lang.String fieldName, double v)
Method for setting value of a field to specified numeric value.ObjectNode
ObjectNode. put(java.lang.String fieldName, float v)
Method for setting value of a field to specified numeric value.ObjectNode
ObjectNode. put(java.lang.String fieldName, int v)
Method for setting value of a field to specified numeric value.ObjectNode
ObjectNode. put(java.lang.String fieldName, long v)
Method for setting value of a field to specified numeric value.ObjectNode
ObjectNode. put(java.lang.String propertyName, short v)
Method for setting value of a property to specified numeric value.ObjectNode
ObjectNode. put(java.lang.String fieldName, java.lang.Boolean v)
Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.ObjectNode
ObjectNode. put(java.lang.String fieldName, java.lang.Double v)
Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.ObjectNode
ObjectNode. put(java.lang.String fieldName, java.lang.Float v)
Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.ObjectNode
ObjectNode. put(java.lang.String fieldName, java.lang.Integer v)
Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.ObjectNode
ObjectNode. put(java.lang.String fieldName, java.lang.Long v)
Method for setting value of a field to specified numeric value.ObjectNode
ObjectNode. put(java.lang.String fieldName, java.lang.Short v)
Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.ObjectNode
ObjectNode. put(java.lang.String fieldName, java.lang.String v)
Method for setting value of a field to specified String value.ObjectNode
ObjectNode. put(java.lang.String fieldName, java.math.BigDecimal v)
Method for setting value of a field to specified numeric value.ObjectNode
ObjectNode. put(java.lang.String fieldName, java.math.BigInteger v)
Method for setting value of a field to specified numeric value.ObjectNode
ObjectNode. putNull(java.lang.String propertyName)
Method for setting value of a property to explicitnull
value.ObjectNode
ObjectNode. putObject(java.lang.String propertyName)
Method that will construct an ObjectNode and add it as a property of thisObjectNode
, replacing old value, if any.ObjectNode
ObjectNode. putPOJO(java.lang.String propertyName, java.lang.Object pojo)
Method for adding an opaque Java value as the value of specified property.ObjectNode
ObjectNode. putRawValue(java.lang.String propertyName, RawValue raw)
ObjectNode
ObjectNode. remove(java.util.Collection<java.lang.String> propertyNames)
Method for removing specified field properties out of this ObjectNode.ObjectNode
ObjectNode. removeAll()
Method for removing all properties, such that this ObjectNode will contain no properties after call.ObjectNode
ObjectNode. retain(java.lang.String... propertyNames)
Method for removing all properties out of this ObjectNode except for ones specified in argument.ObjectNode
ObjectNode. retain(java.util.Collection<java.lang.String> propertyNames)
Method for removing all properties out of this ObjectNode except for ones specified in argument.ObjectNode
ArrayNode. with(java.lang.String exprOrProperty)
Deprecated.ObjectNode
ObjectNode. with(java.lang.String exprOrProperty)
Deprecated.ObjectNode
BaseJsonNode. withObject(com.fasterxml.jackson.core.JsonPointer ptr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex)
ObjectNode
ObjectNode. withObject(java.lang.String exprOrProperty)
ObjectNode
ObjectNode. withObjectProperty(java.lang.String propName)
Methods in com.fasterxml.jackson.databind.node with parameters of type ObjectNode Modifier and Type Method Description protected boolean
ObjectNode. _childrenEqual(ObjectNode other)
JsonNode
ObjectNode. putAll(ObjectNode other)
Deprecated.Since 2.4 usesetAll(ObjectNode)
,<T extends JsonNode>
TObjectNode. setAll(ObjectNode other)
Method for adding all properties of the given Object, overriding any existing values for those properties. -
Uses of ObjectNode in com.fasterxml.jackson.databind.ser
Methods in com.fasterxml.jackson.databind.ser with parameters of type ObjectNode Modifier and Type Method Description protected void
BeanPropertyWriter. _depositSchemaProperty(ObjectNode propertiesNode, JsonNode schemaNode)
void
BeanPropertyFilter. depositSchemaProperty(BeanPropertyWriter writer, ObjectNode propertiesNode, SerializerProvider provider)
Deprecated.Since 2.3: new code should use the alternativedepositSchemaProperty
methodvoid
BeanPropertyWriter. depositSchemaProperty(ObjectNode propertiesNode, SerializerProvider provider)
Deprecated.void
PropertyFilter. depositSchemaProperty(PropertyWriter writer, ObjectNode propertiesNode, SerializerProvider provider)
Deprecated.Since 2.3: new code should use the alternativedepositSchemaProperty
methodabstract void
PropertyWriter. depositSchemaProperty(ObjectNode propertiesNode, SerializerProvider provider)
Deprecated.Since 2.2 -
Uses of ObjectNode in com.fasterxml.jackson.databind.ser.impl
Methods in com.fasterxml.jackson.databind.ser.impl with parameters of type ObjectNode Modifier and Type Method Description protected void
UnwrappingBeanPropertyWriter. _depositSchemaProperty(ObjectNode propertiesNode, JsonNode schemaNode)
void
SimpleBeanPropertyFilter. depositSchemaProperty(BeanPropertyWriter writer, ObjectNode propertiesNode, SerializerProvider provider)
Deprecated.void
SimpleBeanPropertyFilter. depositSchemaProperty(PropertyWriter writer, ObjectNode propertiesNode, SerializerProvider provider)
Deprecated. -
Uses of ObjectNode in com.fasterxml.jackson.databind.ser.std
Methods in com.fasterxml.jackson.databind.ser.std that return ObjectNode Modifier and Type Method Description protected ObjectNode
StdSerializer. createSchemaNode(java.lang.String type)
protected ObjectNode
StdSerializer. createSchemaNode(java.lang.String type, boolean isOptional)
Methods in com.fasterxml.jackson.databind.ser.std with parameters of type ObjectNode Modifier and Type Method Description void
MapProperty. depositSchemaProperty(ObjectNode propertiesNode, SerializerProvider provider)
Deprecated.
-