public class ObjectMapperFields extends Object implements ClassMapper
| Constructor and Description | 
|---|
ObjectMapperFields()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected Constructor<?> | 
getAnnotatedConstructor(Class<?> aClass)  | 
protected com.sdicons.json.mapper.helper.ObjectMapperFields.AnnotatedMethods | 
getAnnotatedMethods(Class<?> aClass)  | 
protected Method | 
getAnnotatedSerializingMethod(Class<?> aClass)  | 
protected List<Field> | 
getFieldInfo(Class<?> aClass)  | 
Class<?> | 
getHelpedClass()  | 
Object | 
toJava(JSONMapper mapper,
      JSONValue aValue,
      Class<?> aRequestedClass)
Map an instance from the JSON model to Java. 
 | 
JSONValue | 
toJSON(JSONMapper mapper,
      Object aPojo)
Map a Java instance to an instance of the JSON model. 
 | 
public Class<?> getHelpedClass()
getHelpedClass in interface ClassHelperprotected Constructor<?> getAnnotatedConstructor(Class<?> aClass)
protected com.sdicons.json.mapper.helper.ObjectMapperFields.AnnotatedMethods getAnnotatedMethods(Class<?> aClass) throws MapperException
MapperExceptionpublic Object toJava(JSONMapper mapper, JSONValue aValue, Class<?> aRequestedClass) throws MapperException
ClassMappertoJava in interface ClassMappermapper - The JSONMapper is passed as an argument for recursive mappings or to access the mapping options.aValue - The JSON object that we want to convert.aRequestedClass - The target Java class in which we want to convert the JSON object.MapperException - If the mapping cannot be done.public 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.