Beispiel #1
0
        public static AbstractParser CreateXMLParser()
        {
            ParserBuilder builder = ParserBuilderFactory.GetParserBuilderFactory().GetParserBuilder(ParserVersions.XMLParserVersion);

            builder.SetUbicationManager(LastVersionVariables.UbicationVersion);
            builder.SetDataFormatManager(LastVersionVariables.SaveDataFormatVersion);
            return(builder.GetParser());
        }
Beispiel #2
0
        public void SetSysteme(ISysteme system)
        {
            this.systeme = system;
            SystemConfiguration configuration = this.systeme.GetConfiguration();
            ParserBuilder       builder       = ParserBuilderFactory.GetParserBuilderFactory().GetParserBuilder(configuration.parserVersion);

            builder.SetUbicationManager(configuration.ubicationVersion);
            builder.SetDataFormatManager(configuration.saveDataVersion);
            this.parser = builder.GetParser();
        }
Beispiel #3
0
 public void TestGetSaveDataFormatManager_XMLParserVersionString_ReturnXMLParserBuilder()
 {
     ParserBuilderFactory.GetParserBuilderFactory().GetParserBuilder(ParserVersions.XMLParserVersion);
     Assert.AreEqual(ParserBuilderFactory.GetParserBuilderFactory().GetParserBuilder(ParserVersions.XMLParserVersion).GetType(), typeof(XMLParserBuilder));
 }