Package | Description |
---|---|
com.fasterxml.jackson.databind |
Contains basic mapper (conversion) functionality that
allows for converting between regular streaming json content and
Java objects (beans or Tree Model: support for both is via
ObjectMapper class, as well
as convenience methods included in
JsonParser |
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 concrete
JsonNode 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 |
Modifier and Type | Method and Description |
---|---|
ObjectNode |
ObjectMapper.createObjectNode()
Note: return type is co-variant, as basic ObjectCodec
abstraction can not refer to concrete node types (as it's
part of core package, whereas impls are part of mapper
package)
|
Modifier and Type | Method and Description |
---|---|
ObjectNode |
JsonSchema.getSchemaNode()
Deprecated.
Method for accessing root JSON object of the contained schema.
|
Constructor and Description |
---|
JsonSchema(ObjectNode schema)
Deprecated.
Main constructor for schema instances.
|
Modifier and Type | Method and Description |
---|---|
ObjectNode |
ArrayNode.addObject()
Method that will construct an ObjectNode and add it at the end
of this array node.
|
ObjectNode |
ObjectNode.deepCopy() |
ObjectNode |
ValueNode.findParent(String fieldName) |
ObjectNode |
ObjectNode.findParent(String fieldName) |
ObjectNode |
ArrayNode.findParent(String fieldName) |
ObjectNode |
ArrayNode.insertObject(int index)
Method for creating an
ObjectNode , appending it at the end
of this array, and returning the newly created node
(note: NOT 'this' array) |
ObjectNode |
JsonNodeFactory.objectNode()
Factory method for constructing an empty JSON Object ("struct") node
|
ObjectNode |
ContainerNode.objectNode()
Factory method that constructs and returns an empty
ObjectNode
Construction is done using registered JsonNodeFactory . |
ObjectNode |
ObjectNode.put(String fieldName,
BigDecimal v)
Method for setting value of a field to specified numeric value.
|
ObjectNode |
ObjectNode.put(String fieldName,
boolean v)
Method for setting value of a field to specified String value.
|
ObjectNode |
ObjectNode.put(String fieldName,
Boolean value)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ObjectNode |
ObjectNode.put(String fieldName,
byte[] v)
Method for setting value of a field to specified binary value
|
ObjectNode |
ObjectNode.put(String fieldName,
double v)
Method for setting value of a field to specified numeric value.
|
ObjectNode |
ObjectNode.put(String fieldName,
Double value)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ObjectNode |
ObjectNode.put(String fieldName,
float v)
Method for setting value of a field to specified numeric value.
|
ObjectNode |
ObjectNode.put(String fieldName,
Float value)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ObjectNode |
ObjectNode.put(String fieldName,
int v)
Method for setting value of a field to specified numeric value.
|
ObjectNode |
ObjectNode.put(String fieldName,
Integer value)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ObjectNode |
ObjectNode.put(String fieldName,
long v)
Method for setting value of a field to specified numeric value.
|
ObjectNode |
ObjectNode.put(String fieldName,
Long value)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ObjectNode |
ObjectNode.put(String fieldName,
short v)
Method for setting value of a field to specified numeric value.
|
ObjectNode |
ObjectNode.put(String fieldName,
Short value)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ObjectNode |
ObjectNode.put(String fieldName,
String v)
Method for setting value of a field to specified String value.
|
ObjectNode |
ObjectNode.putNull(String fieldName) |
ObjectNode |
ObjectNode.putObject(String fieldName)
Method that will construct an ObjectNode and add it as a
field of this ObjectNode, replacing old value, if any.
|
ObjectNode |
ObjectNode.putPOJO(String fieldName,
Object pojo) |
ObjectNode |
ObjectNode.remove(Collection<String> fieldNames)
Method for removing specified field properties out of
this ObjectNode.
|
ObjectNode |
ObjectNode.removeAll()
Method for removing all field properties, such that this
ObjectNode will contain no properties after call.
|
ObjectNode |
ObjectNode.retain(Collection<String> fieldNames)
Method for removing all field properties out of this ObjectNode
except for ones specified in argument.
|
ObjectNode |
ObjectNode.retain(String... fieldNames)
Method for removing all field properties out of this ObjectNode
except for ones specified in argument.
|
ObjectNode |
ObjectNode.with(String propertyName) |
ObjectNode |
ObjectNode.without(Collection<String> fieldNames)
Method for removing specified field properties out of
this ObjectNode.
|
Modifier and Type | Method and Description |
---|---|
JsonNode |
ObjectNode.putAll(ObjectNode other)
Method for adding all properties of the given Object, overriding
any existing values for those properties.
|
JsonNode |
ObjectNode.setAll(ObjectNode other)
Method for adding all properties of the given Object, overriding
any existing values for those properties.
|
Modifier and Type | Method and Description |
---|---|
void |
BeanPropertyFilter.depositSchemaProperty(BeanPropertyWriter writer,
ObjectNode propertiesNode,
SerializerProvider provider)
Method called by
BeanSerializer to let the filter determine whether, and in what
form the given property exist within the parent, or root, schema. |
void |
BeanPropertyWriter.depositSchemaProperty(ObjectNode propertiesNode,
SerializerProvider provider)
Attempt to add the output of the given
BeanPropertyWriter in the given ObjectNode . |
Modifier and Type | Method and Description |
---|---|
void |
SimpleBeanPropertyFilter.depositSchemaProperty(BeanPropertyWriter writer,
ObjectNode propertiesNode,
SerializerProvider provider) |
Modifier and Type | Method and Description |
---|---|
protected ObjectNode |
StdSerializer.createObjectNode() |
protected ObjectNode |
StdSerializer.createSchemaNode(String type) |
protected ObjectNode |
StdSerializer.createSchemaNode(String type,
boolean isOptional) |
Copyright © 2012-2013 FasterXML. All Rights Reserved.