程序包 | 说明 |
---|---|
org.codehaus.jackson.map |
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
Object mapper will convert Json content to ant from
basic Java wrapper types (Integer, Boolean, Double),
Collection types (List, Map), Java Beans,
Strings and nulls. |
org.codehaus.jackson.map.deser |
Contains implementation classes of deserialization part of
data binding.
|
org.codehaus.jackson.map.ser.std | |
org.codehaus.jackson.node |
Contains concrete
JsonNode implementations
Jackson uses for the Tree model. |
org.codehaus.jackson.schema |
Classes needed for JSON schema support (currently just ability
to generate schemas using serialization part of data mapping)
|
限定符和类型 | 方法和说明 |
---|---|
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)
|
限定符和类型 | 方法和说明 |
---|---|
protected ObjectNode |
JsonNodeDeserializer.deserializeObject(JsonParser jp,
DeserializationContext ctxt)
已过时。
since 1.9.0
|
限定符和类型 | 方法和说明 |
---|---|
protected ObjectNode |
SerializerBase.createObjectNode() |
protected ObjectNode |
SerializerBase.createSchemaNode(String type) |
protected ObjectNode |
SerializerBase.createSchemaNode(String type,
boolean isOptional) |
限定符和类型 | 方法和说明 |
---|---|
ObjectNode |
ArrayNode.addObject()
Method that will construct an ObjectNode and add it at the end
of this array node.
|
ObjectNode |
ObjectNode.findParent(String fieldName) |
abstract ObjectNode |
ContainerNode.findParent(String fieldName) |
ObjectNode |
BaseJsonNode.findParent(String fieldName) |
ObjectNode |
ArrayNode.findParent(String fieldName) |
ObjectNode |
ArrayNode.insertObject(int index)
Method that will construct an ObjectNode and add it at the end
of this array node.
|
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.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.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) |
限定符和类型 | 方法和说明 |
---|---|
JsonNode |
ObjectNode.putAll(ObjectNode other)
Method for adding all properties of the given Object, overriding
any existing values for those properties.
|
限定符和类型 | 方法和说明 |
---|---|
ObjectNode |
JsonSchema.getSchemaNode()
Method for accessing root JSON object of the contained schema.
|
构造器和说明 |
---|
JsonSchema(ObjectNode schema)
Main constructor for schema instances.
|