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_MAPPINGS
toConfigure
- public static ScenarioSimulationXMLPersistence getInstance()
public static String getCurrentVersion()
public static String cleanUpUnusedNodes(String input) throws Exception
Exception
public static double getColumnWidth(String expressionIdentifierName)
public String marshal(ScenarioSimulationModel sc)
public ScenarioSimulationModel unmarshal(String rawXml) throws Exception
Exception
public ScenarioSimulationModel unmarshal(String rawXml, boolean migrate) throws Exception
Exception
public String migrateIfNecessary(String rawXml) throws Exception
Exception
public MigrationStrategy getMigrationStrategy()
public void setMigrationStrategy(MigrationStrategy migrationStrategy)
protected ScenarioSimulationModel internalUnmarshal(String xml) throws Exception
Exception
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.