public class GenericModel extends Object
Generic model which tries to convert a raw JSON string to classes which can be operated upon.
Constructor and Description |
---|
GenericModel(String json)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Collection<Map<String,Object>> |
getEntries()
Retrieves all the entries.
|
Collection<Map<String,Object>> |
getEntries(Map<String,Collection<String>> inputs)
Retrieves all the entries matching the input criterion.
|
Collection<Map<String,Object>> |
getEntries(String key,
String value)
Retrieves all the entries matching the input criterion.
|
String |
toString() |
public GenericModel(String json)
Default constructor.
json
- the JSON to formatpublic Collection<Map<String,Object>> getEntries()
Retrieves all the entries.
public Collection<Map<String,Object>> getEntries(Map<String,Collection<String>> inputs)
Retrieves all the entries matching the input criterion.
inputs
- the input criterionpublic Collection<Map<String,Object>> getEntries(String key, String value)
Retrieves all the entries matching the input criterion.
key
- the keyvalue
- the valueCopyright © 2018. All rights reserved.