com.jayway.jsonpath
Interface JsonModel.ListMappingModelReader

All Known Subinterfaces:
JsonModel.MappingModelReader
Enclosing class:
JsonModel

public static interface JsonModel.ListMappingModelReader

Converts a JsonModel to an Collection of Objects


Method Summary
<T> List<T>
of(Class<T> targetClass)
          Converts this JsonModel to the a list of objects with the provided class using the configured MappingProvider
 JsonModel.ListMappingModelReader toList()
          Syntactic sugar function to use with of(java.lang.Class)
<T> List<T>
toListOf(Class<T> targetClass)
          Converts this JsonModel to the a List of objects with the provided class using the configured MappingProvider
<T> Set<T>
toSetOf(Class<T> targetClass)
          Converts this JsonModel to the a Set of objects with the provided class using the configured MappingProvider
 

Method Detail

of

<T> List<T> of(Class<T> targetClass)
Converts this JsonModel to the a list of objects with the provided class using the configured MappingProvider

Type Parameters:
T - template class
Parameters:
targetClass - class to convert the JsonModel array items to
Returns:
the mapped mode

toList

JsonModel.ListMappingModelReader toList()
Syntactic sugar function to use with of(java.lang.Class)


toListOf

<T> List<T> toListOf(Class<T> targetClass)
Converts this JsonModel to the a List of objects with the provided class using the configured MappingProvider

Type Parameters:
T - template class
Parameters:
targetClass - class to convert the JsonModel array items to
Returns:
the mapped mode

toSetOf

<T> Set<T> toSetOf(Class<T> targetClass)
Converts this JsonModel to the a Set of objects with the provided class using the configured MappingProvider

Type Parameters:
T - template class
Parameters:
targetClass - class to convert the JsonModel array items to
Returns:
the mapped model


Copyright © 2011-2012. All Rights Reserved.