public class YAMLExporter extends AbstractStatesExporter<String,State,Message,StateMachine>
| Modifier and Type | Class and Description |
|---|---|
static class |
YAMLExporter.MarginSize
The margin spacing options (2 or 4 spaces)
|
currentStateColor, DEFAULT_CURRENT_COLOR, DEFAULT_FINAL_COLOR, fileSystem, finalStateColor, graphName, NL, showCurrent, TB, useHSB| Constructor and Description |
|---|
YAMLExporter(FileSystem fileSystem,
String graphName,
Color finalStateColor,
boolean useHSB,
boolean showCurrent,
Color currentStateColor,
YAMLExporter.MarginSize marginSize)
All arguments constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
export(StateMachine stateMachine)
Export the current contents of the state machine
to YAML syntax.
|
exportToFile, exportToFile, fillDefaultspublic YAMLExporter(FileSystem fileSystem, String graphName, Color finalStateColor, boolean useHSB, boolean showCurrent, Color currentStateColor, YAMLExporter.MarginSize marginSize)
fileSystem - the filesystemgraphName - the graph namefinalStateColor - the final state coloruseHSB - the flag to control exporting using HSB color formatshowCurrent - the flag to control annotating current statuscurrentStateColor - the current state colorpublic String export(StateMachine stateMachine)
stateMachine - the state machine to exportCopyright © 2019 state-machine. All rights reserved.