public class SimpleObjectTransformer extends TransformStrategy
SimpleObjectTransformer class.
| Constructor and Description |
|---|
SimpleObjectTransformer() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
getValue(org.codehaus.jackson.JsonNode node,
TransformHelper helper)
getValue.
|
Object |
jsonToPojo(org.codehaus.jackson.JsonNode from,
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 from,
TransformHelper helper)
Transform an object into an json representation.
|
jsonToPojo, jsonToPojo, pojoToJsonpublic Object jsonToPojo(org.codehaus.jackson.JsonNode from, Class<?> type, TransformHelper helper) throws NotSupportedException
jsonToPojo in class TransformStrategyfrom - 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 from, TransformHelper helper) throws NotSupportedException
pojoToJson in class TransformStrategyfrom - The object to transformhelper - a TransformHelper object.NotSupportedException - if any.public static Object getValue(org.codehaus.jackson.JsonNode node, TransformHelper helper)
getValue.
node - a JsonNode object.helper - a TransformHelper object.Object object.Copyright © 2016. All Rights Reserved.