public abstract class AbstractMapper extends Object implements ClassMapper
Constructor and Description |
---|
AbstractMapper() |
Modifier and Type | Method and Description |
---|---|
JSONValue |
toJSON(JSONMapper mapper,
Object aPojo)
Map a Java instance to an instance of the JSON model.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toJava
getHelpedClass
public JSONValue toJSON(JSONMapper mapper, Object aPojo) throws MapperException
ClassMapper
toJSON
in interface ClassMapper
mapper
- The JSONMapper is passed as an argument for recursive mappings or to access the mapping options.aPojo
- The Java instance that we want to convert the JSON model.MapperException
- If the mapping cannot be done.Copyright © 2012. All Rights Reserved.