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, waittoJavagetHelpedClasspublic JSONValue toJSON(JSONMapper mapper, Object aPojo) throws MapperException
ClassMappertoJSON in interface ClassMappermapper - 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.