public class ProcessDiagramJsonConverter
extends java.lang.Object
Diagram
into a JSON string.Constructor and Description |
---|
ProcessDiagramJsonConverter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
convert(Module module,
java.lang.String diagramURI)
Converts the process model diagram into a JSON string.
|
java.lang.String |
convert(Module module,
java.lang.String diagramURI,
java.util.Map<java.lang.String,ElementRuntimeData> runtimeData)
Converts the process model diagram into a JSON string.
|
public java.lang.String convert(Module module, java.lang.String diagramURI)
module
- the module which contains the requested diagramdiagramURI
- the URI of the specific diagram to returnpublic java.lang.String convert(Module module, java.lang.String diagramURI, java.util.Map<java.lang.String,ElementRuntimeData> runtimeData)
Converts the process model diagram into a JSON string.
This method accepts runtime data for elements. The purpose of this is
to display a runtime state of the model. The identifiers of elements are
URI as would be returned by EcoreUtil#getURI(org.eclipse.emf.ecore.EObject)
.
module
- the module which contains the requested diagramdiagramURI
- the URI of the specific diagram to returnruntimeData
- runtime data of elementsCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.