public class JacksonTransformer extends TransformStrategy
JacksonTransformer class.
| Constructor and Description |
|---|
JacksonTransformer() |
| Modifier and Type | Method and Description |
|---|---|
Object |
jsonToPojo(org.codehaus.jackson.JsonNode node,
Class<?> type,
TransformHelper helper)
Transform the json into an object, some implementations need a type hint to create the object.
|
org.codehaus.jackson.JsonNode |
pojoToJson(Object obj,
TransformHelper helper)
Transform an object into an json representation.
|
jsonToPojo, jsonToPojo, pojoToJsonpublic Object jsonToPojo(org.codehaus.jackson.JsonNode node, Class<?> type, TransformHelper helper) throws NotSupportedException
jsonToPojo in class TransformStrategynode - The object datatype - The type hint, can also be null. If this is not supportet throw the exceptionhelper - The helper to create objectsNotSupportedException - Thrown if the object could not be created.public org.codehaus.jackson.JsonNode pojoToJson(Object obj, TransformHelper helper) throws NotSupportedException
pojoToJson in class TransformStrategyobj - The object to transformhelper - a TransformHelper object.NotSupportedException - if any.Copyright © 2016. All Rights Reserved.