public class SingleJsonSource extends JsonSource
In the context of the JSON Discoverer, it is used in the JsonInjector to
inject the model out of a JSON document without input.
*
jsonData, withInput| Constructor and Description |
|---|
SingleJsonSource(java.lang.String name)
Constructs a
SingleJsonSource element |
| Modifier and Type | Method and Description |
|---|---|
void |
addJsonData(java.io.Reader output)
Adds a new JSON document to the source.
|
addJsonData, getJsonData, getSourceDigested, includesInputgetMetamodel, getName, setMetamodel, setNamepublic SingleJsonSource(java.lang.String name)
SingleJsonSource elementname - The name of the SingleJsonSourcepublic void addJsonData(java.io.Reader output)
In the context of the JSON discoverer, the provided JSON document represents the output of a JSON-based Web service
The data must be provided as a valid JSON object.
output - The JSON document