public class ScenarioSimulationXMLPersistence extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
cleanUpUnusedNodes(String input) |
static void |
configureXStreamMappings(com.thoughtworks.xstream.XStream toConfigure)
Method to configure the commonly-used mappings defined in
XSTREAM_MAPPINGS |
String |
extractVersion(String rawXml) |
static double |
getColumnWidth(String expressionIdentifierName) |
static String |
getCurrentVersion() |
static ScenarioSimulationXMLPersistence |
getInstance() |
MigrationStrategy |
getMigrationStrategy() |
protected ScenarioSimulationModel |
internalUnmarshal(String xml) |
String |
marshal(ScenarioSimulationModel sc) |
String |
migrateIfNecessary(String rawXml) |
void |
setMigrationStrategy(MigrationStrategy migrationStrategy) |
ScenarioSimulationModel |
unmarshal(String rawXml) |
ScenarioSimulationModel |
unmarshal(String rawXml,
boolean migrate) |
public static void configureXStreamMappings(com.thoughtworks.xstream.XStream toConfigure)
XSTREAM_MAPPINGStoConfigure - public static ScenarioSimulationXMLPersistence getInstance()
public static String getCurrentVersion()
public static String cleanUpUnusedNodes(String input) throws Exception
Exceptionpublic static double getColumnWidth(String expressionIdentifierName)
public String marshal(ScenarioSimulationModel sc)
public ScenarioSimulationModel unmarshal(String rawXml) throws Exception
Exceptionpublic ScenarioSimulationModel unmarshal(String rawXml, boolean migrate) throws Exception
Exceptionpublic String migrateIfNecessary(String rawXml) throws Exception
Exceptionpublic MigrationStrategy getMigrationStrategy()
public void setMigrationStrategy(MigrationStrategy migrationStrategy)
protected ScenarioSimulationModel internalUnmarshal(String xml) throws Exception
ExceptionCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.