Class ArrayMapper
- java.lang.Object
-
- com.sdicons.json.mapper.helper.impl.ArrayMapper
-
- All Implemented Interfaces:
Helper
,SimpleMapperHelper
public class ArrayMapper extends java.lang.Object implements SimpleMapperHelper
-
-
Constructor Summary
Constructors Constructor Description ArrayMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class
getHelpedClass()
private boolean
isPrimitiveArray(java.lang.String aClassName)
java.lang.Object
toJava(JSONValue aValue, java.lang.Class aRequestedClass)
JSONValue
toJSON(java.lang.Object aObj)
-
-
-
Method Detail
-
toJSON
public JSONValue toJSON(java.lang.Object aObj) throws MapperException
- Specified by:
toJSON
in interfaceSimpleMapperHelper
- Throws:
MapperException
-
getHelpedClass
public java.lang.Class getHelpedClass()
- Specified by:
getHelpedClass
in interfaceHelper
-
isPrimitiveArray
private boolean isPrimitiveArray(java.lang.String aClassName)
-
toJava
public java.lang.Object toJava(JSONValue aValue, java.lang.Class aRequestedClass) throws MapperException
- Specified by:
toJava
in interfaceSimpleMapperHelper
- Throws:
MapperException
-
-