Uses of Class
com.fasterxml.jackson.databind.node.ObjectNode
Packages that use ObjectNode
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.Classes needed for JSON schema support (currently just ability
to generate schemas using serialization part of data mapping)
Contains concrete
JsonNode implementations
Jackson uses for the Tree model.Contains implementation classes of serialization part of
data binding.
Contains implementation classes of serialization part of
data binding.
-
Uses of ObjectNode in com.fasterxml.jackson.databind
Methods in com.fasterxml.jackson.databind that return ObjectNodeModifier and TypeMethodDescriptionObjectMapper.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)final ObjectNodeJsonNode.withObject(com.fasterxml.jackson.core.JsonPointer ptr) Same asJsonNode.withObject(JsonPointer, OverwriteMode, boolean)but with defaults ofOvewriteMode#NULLS(overwrite mode) andtrueforpreferIndex(that is, will try to considerJsonPointersegments index if at all possible and only secondarily as property nameJsonNode.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.JsonNode.withObject(String exprOrProperty) Method that works in one of possible ways, depending on whetherexprOrPropertyis a validJsonPointerexpression or not (valid expression is either empty String""or starts with leading slash/character).final ObjectNodeJsonNode.withObject(String expr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) Short-cut equivalent to:JsonNode.withObjectProperty(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 ObjectNodeModifier and TypeMethodDescriptionJsonSchema.getSchemaNode()Deprecated.Method for accessing root JSON object of the contained schema.Constructors in com.fasterxml.jackson.databind.jsonschema with parameters of type ObjectNodeModifierConstructorDescriptionJsonSchema(ObjectNode schema) Deprecated.Main constructor for schema instances. -
Uses of ObjectNode in com.fasterxml.jackson.databind.node
Subclasses with type arguments of type ObjectNode in com.fasterxml.jackson.databind.nodeModifier and TypeClassDescriptionclassNode that maps to JSON Object structures in JSON content.Methods in com.fasterxml.jackson.databind.node that return ObjectNodeModifier and TypeMethodDescriptionprotected ObjectNodeprotected ObjectNodeArrayNode._withObject(com.fasterxml.jackson.core.JsonPointer origPtr, com.fasterxml.jackson.core.JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ObjectNodeBaseJsonNode._withObject(com.fasterxml.jackson.core.JsonPointer origPtr, com.fasterxml.jackson.core.JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected abstract ObjectNodeContainerNode._withObject(com.fasterxml.jackson.core.JsonPointer origPtr, com.fasterxml.jackson.core.JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ObjectNodeObjectNode._withObject(com.fasterxml.jackson.core.JsonPointer origPtr, com.fasterxml.jackson.core.JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ObjectNodeArrayNode._withObjectAddTailElement(com.fasterxml.jackson.core.JsonPointer tail, boolean preferIndex) protected ObjectNodeObjectNode._withObjectAddTailProperty(com.fasterxml.jackson.core.JsonPointer tail, boolean preferIndex) ArrayNode.addObject()Method that will construct an ObjectNode and add it at the end of this array node.ObjectNode.deepCopy()ArrayNode.findParent(String fieldName) ObjectNode.findParent(String propertyName) final ObjectNodeValueNode.findParent(String fieldName) 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)final ObjectNodeContainerNode.objectNode()Factory method that constructs and returns an emptyObjectNodeConstruction is done using registeredJsonNodeFactory.JsonNodeCreator.objectNode()JsonNodeFactory.objectNode()Factory method for constructing an empty JSON Object ("struct") nodeMethod for setting value of a field to specified String value.Method for setting value of a field to specified binary valueMethod for setting value of a field to specified numeric value.Method for setting value of a field to specified numeric value.Method for setting value of a field to specified numeric value.Method for setting value of a field to specified numeric value.Method for setting value of a property to specified numeric value.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 numeric value.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.ObjectNode.put(String fieldName, BigDecimal v) Method for setting value of a field to specified numeric value.ObjectNode.put(String fieldName, BigInteger v) Method for setting value of a field to specified numeric value.Method for setting value of a property to explicitnullvalue.Method that will construct an ObjectNode and add it as a property of thisObjectNode, replacing old value, if any.Method for adding an opaque Java value as the value of specified property.ObjectNode.putRawValue(String propertyName, RawValue raw) ObjectNode.remove(Collection<String> propertyNames) Method for removing specified field properties out of this ObjectNode.ObjectNode.removeAll()Method for removing all properties, such that this ObjectNode will contain no properties after call.Method for removing all properties out of this ObjectNode except for ones specified in argument.ObjectNode.retain(Collection<String> propertyNames) Method for removing all properties out of this ObjectNode except for ones specified in argument.Deprecated.Deprecated.BaseJsonNode.withObject(com.fasterxml.jackson.core.JsonPointer ptr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) ObjectNode.withObject(String exprOrProperty) ObjectNode.withObjectProperty(String propName) Methods in com.fasterxml.jackson.databind.node with parameters of type ObjectNodeModifier and TypeMethodDescriptionprotected booleanObjectNode._childrenEqual(ObjectNode other) ObjectNode.putAll(ObjectNode other) Deprecated.<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 ObjectNodeModifier and TypeMethodDescriptionprotected voidBeanPropertyWriter._depositSchemaProperty(ObjectNode propertiesNode, JsonNode schemaNode) voidBeanPropertyFilter.depositSchemaProperty(BeanPropertyWriter writer, ObjectNode propertiesNode, SerializerProvider provider) Deprecated.Since 2.3: new code should use the alternativedepositSchemaPropertymethodvoidBeanPropertyWriter.depositSchemaProperty(ObjectNode propertiesNode, SerializerProvider provider) Deprecated.voidPropertyFilter.depositSchemaProperty(PropertyWriter writer, ObjectNode propertiesNode, SerializerProvider provider) Deprecated.Since 2.3: new code should use the alternativedepositSchemaPropertymethodabstract voidPropertyWriter.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 ObjectNodeModifier and TypeMethodDescriptionprotected voidUnwrappingBeanPropertyWriter._depositSchemaProperty(ObjectNode propertiesNode, JsonNode schemaNode) voidSimpleBeanPropertyFilter.depositSchemaProperty(BeanPropertyWriter writer, ObjectNode propertiesNode, SerializerProvider provider) Deprecated.voidSimpleBeanPropertyFilter.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 ObjectNodeModifier and TypeMethodDescriptionprotected ObjectNodeStdSerializer.createSchemaNode(String type) protected ObjectNodeStdSerializer.createSchemaNode(String type, boolean isOptional) Methods in com.fasterxml.jackson.databind.ser.std with parameters of type ObjectNodeModifier and TypeMethodDescriptionvoidMapProperty.depositSchemaProperty(ObjectNode propertiesNode, SerializerProvider provider) Deprecated.
ObjectNode.setAll(ObjectNode),