public interface IJsonTableFormat
Interface for JSON table format. All implementing classes should specify an instance variable which contains the JSON which should be operated on by the methods.
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getCodes()
Extracts the codes from the JSON.
|
Map<String,Collection<String>> |
getInputs()
Extracts the codes and their respective values from the JSON.
|
List<String> |
getValues(String code)
Extracts the values for a code from the JSON.
|
Map<String,Collection<String>> getInputs()
Extracts the codes and their respective values from the JSON.
List<String> getValues(String code) throws IllegalArgumentException
Extracts the values for a code from the JSON.
code - the codeIllegalArgumentException - if the JSON doesn't contain the codeList<String> getCodes() throws IllegalArgumentException
Extracts the codes from the JSON.
IllegalArgumentException - if the JSON doesn't contain codesCopyright © 2016. All rights reserved.