class JsonData
extends java.lang.Object
This class holds the input (as JSON) and the output (as JSON) of the service given such an input.
In the context of JSON discoverer, this class is used in JsonSource
elements
to represent the data for JSON-based Web services.
Modifier and Type | Field and Description |
---|---|
private com.google.gson.JsonElement |
data
The JSON data
|
private com.google.gson.JsonObject |
input
The JSON input to get the data.
|
Constructor and Description |
---|
JsonData(com.google.gson.JsonObject input,
com.google.gson.JsonElement data)
Constructus a new
JsonData elements given an input (optional)
and the output data. |
Modifier and Type | Method and Description |
---|---|
com.google.gson.JsonElement |
getData()
Returns the output fo the
JsonData |
com.google.gson.JsonObject |
getInput()
Returns the input fo the
JsonData |
private com.google.gson.JsonObject input
private com.google.gson.JsonElement data
public JsonData(com.google.gson.JsonObject input, com.google.gson.JsonElement data)
JsonData
elements given an input (optional)
and the output data.input
- The input datadata
- The (output) data