| Package | Description |
|---|---|
| com.agenarisk.api.io | |
| com.agenarisk.api.model |
| Modifier and Type | Method and Description |
|---|---|
static org.json.JSONObject |
FileAdapter.extractJSONObject(String filePath)
Reads the content of the file at the provided path.It checks whether the content begins as JSON or XML and will try to read it as such.
|
protected static org.json.JSONArray |
JSONAdapter.modelRiskTableToJSON(uk.co.agena.minerva.model.Model model) |
static org.json.JSONObject |
JSONAdapter.toJSONObject(uk.co.agena.minerva.model.Model model) |
static org.json.JSONObject |
XMLAdapter.xmlToJson(String xmlString)
Parses XML string to JSONObject and then formats the JSONObject to conform to AgenaRisk 10 JSON model format.
|
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
Model.export(Model.ExportFlags... flags)
Returns the Model as a minimal JSON.
Keeps only elements essential for a clean calculation. |
Copyright © 2020. All rights reserved.