public class JsonSourceSet extends AbstractJsonSource
JsonSource elements.
In the context of JSON Discoverer, it is used to model an API, which is composed of
several JSON-based Web services. As so, the JsonSourceSet includes a set of
JsonSource elements and therefore each one collects the JSON documents for
each JSON-based Web service.
| Modifier and Type | Field and Description |
|---|---|
private java.util.HashMap<java.lang.String,JsonSource> |
sources
The set of
JsonSource elements collected by this class |
| Constructor and Description |
|---|
JsonSourceSet(java.lang.String name)
Constructs a new
JsonSourceSet with a name |
| Modifier and Type | Method and Description |
|---|---|
void |
addJsonSource(JsonSource source)
Adds a
JsonSource element to this JsonSourceSet. |
JsonSource |
getJsonSource(java.lang.String key)
Returns the
JsonSource elements for a given key |
java.util.Collection<JsonSource> |
getJsonSources()
Returns all the
JsonSource elements of this JsonSourceSet |
getMetamodel, getName, setMetamodel, setNameprivate java.util.HashMap<java.lang.String,JsonSource> sources
JsonSource elements collected by this classpublic JsonSourceSet(java.lang.String name)
JsonSourceSet with a namename - The name of the JsonSourceSetpublic void addJsonSource(JsonSource source)
JsonSource element to this JsonSourceSet.
In the context of JSON Discoverer, a JsonSource is considered a JSON-based
Web service.
source - The JsonSource elementpublic JsonSource getJsonSource(java.lang.String key)
JsonSource elements for a given keykey - The name of the JsonSourceJsonSourcepublic java.util.Collection<JsonSource> getJsonSources()
JsonSource elements of this JsonSourceSetJsonSource