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.
|
toJava
getHelpedClass
Object toJava(JSONMapper mapper, JSONValue json, Class<?> requestedClass, Type[] types) throws MapperException
MapperException
JSONValue toJSON(JSONMapper mapper, Object pojo) throws MapperException
ClassMapper
toJSON
in interface ClassMapper
mapper
- 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.