public interface ComplexClassMapper extends ClassMapper
| Modifier and Type | Method and Description |
|---|---|
Object |
toJava(JSONMapper mapper,
JSONValue json,
Class<?> requestedClass,
Type[] types) |
JSONValue |
toJSON(JSONMapper mapper,
Object pojo)
Map a Java instance to an instance of the JSON model.
|
toJavagetHelpedClassObject toJava(JSONMapper mapper, JSONValue json, Class<?> requestedClass, Type[] types) throws MapperException
MapperExceptionJSONValue toJSON(JSONMapper mapper, Object pojo) throws MapperException
ClassMappertoJSON in interface ClassMappermapper - The JSONMapper is passed as an argument for recursive mappings or to access the mapping options.pojo - The Java instance that we want to convert the JSON model.MapperException - If the mapping cannot be done.Copyright © 2012. All Rights Reserved.