Class ScenarioSimulationXMLPersistence


  • public class ScenarioSimulationXMLPersistence
    extends Object
    • Method Detail

      • configureXStreamMappings

        public static void configureXStreamMappings​(com.thoughtworks.xstream.XStream toConfigure)
        Method to configure the commonly-used mappings defined in {@see XSTREAM_MAPPINGS}
        Parameters:
        toConfigure -
      • getCurrentVersion

        public static String getCurrentVersion()
      • getColumnWidth

        public static double getColumnWidth​(String expressionIdentifierName)
      • marshal

        public String marshal​(org.drools.scenariosimulation.api.model.ScenarioSimulationModel sc)
      • unmarshal

        public org.drools.scenariosimulation.api.model.ScenarioSimulationModel unmarshal​(String rawXml)
                                                                                  throws Exception
        Throws:
        Exception
      • unmarshal

        public org.drools.scenariosimulation.api.model.ScenarioSimulationModel unmarshal​(String rawXml,
                                                                                         boolean migrate)
                                                                                  throws Exception
        Throws:
        Exception
      • extractVersion

        public String extractVersion​(String rawXml)
      • setMigrationStrategy

        public void setMigrationStrategy​(MigrationStrategy migrationStrategy)
      • internalUnmarshal

        protected org.drools.scenariosimulation.api.model.ScenarioSimulationModel internalUnmarshal​(String xml)
                                                                                             throws Exception
        Throws:
        Exception