public class DiagramBuilder extends Object
| Constructor and Description |
|---|
DiagramBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static HashMap<String,org.json.JSONObject> |
flatRessources(org.json.JSONObject object)
Prepare a model JSON for analyze, resolves the hierarchical structure
creates a HashMap which contains all resourceIds as keys and for each key
the JSONObject, all id are keys of this map
|
static Diagram |
parseJson(org.json.JSONObject json) |
static Diagram |
parseJson(org.json.JSONObject json,
Boolean keepGlossaryLink)
do the parsing on an JSONObject, assumes that the json is hierarchical
ordered, so all shapes are reachable over child relations
|
static Diagram |
parseJson(String json) |
static Diagram |
parseJson(String json,
Boolean keepGlossaryLink)
Parse the json string to the diagram model, assumes that the json is
hierarchical ordered
|
public static Diagram parseJson(String json) throws org.json.JSONException
org.json.JSONExceptionpublic static Diagram parseJson(String json, Boolean keepGlossaryLink) throws org.json.JSONException
json - org.json.JSONExceptionpublic static Diagram parseJson(org.json.JSONObject json) throws org.json.JSONException
org.json.JSONExceptionpublic static Diagram parseJson(org.json.JSONObject json, Boolean keepGlossaryLink) throws org.json.JSONException
json - hierarchical JSON objectorg.json.JSONExceptionpublic static HashMap<String,org.json.JSONObject> flatRessources(org.json.JSONObject object) throws org.json.JSONException
object - org.json.JSONExceptionCopyright © 2001–2016 JBoss by Red Hat. All rights reserved.