Package com.jayway.jsonpath.spi.mapper
Class JsonSmartMappingProvider
- java.lang.Object
-
- com.jayway.jsonpath.spi.mapper.JsonSmartMappingProvider
-
- All Implemented Interfaces:
MappingProvider
public class JsonSmartMappingProvider extends java.lang.Object implements MappingProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
JsonSmartMappingProvider.BigDecimalReader
private static class
JsonSmartMappingProvider.DateReader
private static class
JsonSmartMappingProvider.DoubleReader
private static class
JsonSmartMappingProvider.FloatReader
private static class
JsonSmartMappingProvider.IntegerReader
private static class
JsonSmartMappingProvider.LongReader
private static class
JsonSmartMappingProvider.StringReader
-
Constructor Summary
Constructors Constructor Description JsonSmartMappingProvider()
JsonSmartMappingProvider(java.util.concurrent.Callable<net.minidev.json.writer.JsonReader> factory)
JsonSmartMappingProvider(net.minidev.json.writer.JsonReader jsonReader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
map(java.lang.Object source, TypeRef<T> targetType, Configuration configuration)
<T> T
map(java.lang.Object source, java.lang.Class<T> targetType, Configuration configuration)
-
-
-
Constructor Detail
-
JsonSmartMappingProvider
public JsonSmartMappingProvider(net.minidev.json.writer.JsonReader jsonReader)
-
JsonSmartMappingProvider
public JsonSmartMappingProvider(java.util.concurrent.Callable<net.minidev.json.writer.JsonReader> factory)
-
JsonSmartMappingProvider
public JsonSmartMappingProvider()
-
-
Method Detail
-
map
public <T> T map(java.lang.Object source, java.lang.Class<T> targetType, Configuration configuration)
- Specified by:
map
in interfaceMappingProvider
- Type Parameters:
T
- the mapped result type- Parameters:
source
- object to maptargetType
- the type the source object should be mapped toconfiguration
- current configuration- Returns:
- return the mapped object
-
map
public <T> T map(java.lang.Object source, TypeRef<T> targetType, Configuration configuration)
- Specified by:
map
in interfaceMappingProvider
- Type Parameters:
T
- the mapped result type- Parameters:
source
- object to maptargetType
- the type the source object should be mapped toconfiguration
- current configuration- Returns:
- return the mapped object
-
-