Class JsonSmartMappingProvider

java.lang.Object
com.jayway.jsonpath.spi.mapper.JsonSmartMappingProvider
All Implemented Interfaces:
MappingProvider

public class JsonSmartMappingProvider extends Object implements MappingProvider
  • Field Details

    • DEFAULT

      private static net.minidev.json.writer.JsonReader DEFAULT
    • factory

      private final Callable<net.minidev.json.writer.JsonReader> factory
  • Constructor Details

    • JsonSmartMappingProvider

      public JsonSmartMappingProvider(net.minidev.json.writer.JsonReader jsonReader)
    • JsonSmartMappingProvider

      public JsonSmartMappingProvider(Callable<net.minidev.json.writer.JsonReader> factory)
    • JsonSmartMappingProvider

      public JsonSmartMappingProvider()
  • Method Details

    • map

      public <T> T map(Object source, Class<T> targetType, Configuration configuration)
      Specified by:
      map in interface MappingProvider
      Type Parameters:
      T - the mapped result type
      Parameters:
      source - object to map
      targetType - the type the source object should be mapped to
      configuration - current configuration
      Returns:
      return the mapped object
    • map

      public <T> T map(Object source, TypeRef<T> targetType, Configuration configuration)
      Specified by:
      map in interface MappingProvider
      Type Parameters:
      T - the mapped result type
      Parameters:
      source - object to map
      targetType - the type the source object should be mapped to
      configuration - current configuration
      Returns:
      return the mapped object