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, includesInput
getMetamodel, getName, setMetamodel, setName
public SingleJsonSource(java.lang.String name)
SingleJsonSource
elementname
- The name of the SingleJsonSource
public 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