public class ObjectNodeToJsonNodeConverter extends Object implements ContentTypeConverter<com.fasterxml.jackson.databind.node.ObjectNode,com.fasterxml.jackson.databind.JsonNode>
ContentTypeConverter
implementation that converts an ObjectNode
object into a JsonNode
.
Intended to simplify JSON-typed event upcasters, which generally deal with an ObjectNode
as the event.
Will succeed converting at all times as an ObjectNode
is a JsonNode
by definition.
Constructor and Description |
---|
ObjectNodeToJsonNodeConverter() |
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
convert(com.fasterxml.jackson.databind.node.ObjectNode original)
Converts the given object into another.
|
Class<com.fasterxml.jackson.databind.node.ObjectNode> |
expectedSourceType()
The expected type of input data.
|
Class<com.fasterxml.jackson.databind.JsonNode> |
targetType()
The returned type of IntermediateRepresentation
|
public Class<com.fasterxml.jackson.databind.node.ObjectNode> expectedSourceType()
ContentTypeConverter
expectedSourceType
in interface ContentTypeConverter<com.fasterxml.jackson.databind.node.ObjectNode,com.fasterxml.jackson.databind.JsonNode>
public Class<com.fasterxml.jackson.databind.JsonNode> targetType()
ContentTypeConverter
targetType
in interface ContentTypeConverter<com.fasterxml.jackson.databind.node.ObjectNode,com.fasterxml.jackson.databind.JsonNode>
public com.fasterxml.jackson.databind.JsonNode convert(com.fasterxml.jackson.databind.node.ObjectNode original)
ContentTypeConverter
SerializedObject
instance.convert
in interface ContentTypeConverter<com.fasterxml.jackson.databind.node.ObjectNode,com.fasterxml.jackson.databind.JsonNode>
original
- the value to convertCopyright © 2010–2023. All rights reserved.