public class JsonSourceProvider extends Object implements DataModelSourceProvider
DataModelSource from JSON object enumeration.
This accepts URI which is compatible as a valid URL and ends with ".json".| Constructor and Description |
|---|
JsonSourceProvider() |
| Modifier and Type | Method and Description |
|---|---|
<T> DataModelSource |
open(DataModelDefinition<T> definition,
URI source,
TestContext context)
Creates a
DataModelSource object corresponding to the specified URI. |
public <T> DataModelSource open(DataModelDefinition<T> definition, URI source, TestContext context) throws IOException
DataModelSourceProviderDataModelSource object corresponding to the specified URI.
If this object does not support the URI, or
the source does not exist on the specified URI,
this method will return null.
open in interface DataModelSourceProviderT - type of data modeldefinition - the data model definitionsource - the target identifiercontext - the current testing contextDataModelSource,
or null if the specified source is not valid for this objectIOException - if failed to load a DataModelSource from the URICopyright © 2011–2018 Asakusa Framework Team. All rights reserved.