示例#1
0
            internal ConstMsgSaxHandler(LanguageData enclosingInstance, byte[] constMessages)
            {
                _enclosingInstance = enclosingInstance;
                MgSAXHandler mgSAXHandler = new MgSAXHandler(this);

                mgSAXHandler.parse(constMessages);
            }
示例#2
0
            internal KbdMapTableSaxHandler(KeyboardMappingTable enclosingInstance, byte[] keyMapXml)
            {
                _enclosingInstance = enclosingInstance;
                MgSAXHandler mgSAXHandler = new MgSAXHandler(this);

                mgSAXHandler.parse(keyMapXml);
            }
示例#3
0
            internal FontTableSaxHandler(FontsTable enclosingInstance, byte[] fontxml)
            {
                _enclosingInstance = enclosingInstance;
                MgSAXHandler mgSAXHandler = new MgSAXHandler(this);

                mgSAXHandler.parse(fontxml);
            }
示例#4
0
        /// <summary>
        /// CTOR
        /// </summary>
        /// <param name="xmlData"></param>
        /// <param name="ddm"></param>
        public DataSourceDefinitionManagerSaxHandler(byte[] xmlData, DataSourceDefinitionManager dataSourceDefinitionManager)
        {
            this.dataSourceDefinitionManager = dataSourceDefinitionManager;
            MgSAXHandler mgSAXHandler = new MgSAXHandler(this);

            mgSAXHandler.parse(xmlData);
        }
        /// <summary>
        /// CTOR
        /// </summary>
        /// <param name="xmlData"></param>
        /// <param name="ddm"></param>
        public DatabaseDefinitionsSaxParser(byte[] xmlData, DatabaseDefinitionsManager databaseDefinitionsManager)
        {
            this.databaseDefinitionsManager = databaseDefinitionsManager;
            MgSAXHandler mgSAXHandler = new MgSAXHandler(this);

            mgSAXHandler.parse(xmlData);
        }
示例#6
0
        /// <summary>
        /// CTOR - create and activate the parsing process
        /// </summary>
        /// <param name="dataSourceDefinition"></param>
        /// <param name="xmlData"></param>
        public DataSourceDefinitionSaxHandler(DataSourceDefinition dataSourceDefinition, DataSourceBuilder dataSourceBuilder,
                                              byte[] xmlData)
        {
            this.dataSourceDefinition = dataSourceDefinition;
            this.dataSourceBuilder    = dataSourceBuilder;
            MgSAXHandler mgSAXHandler = new MgSAXHandler(this);

            mgSAXHandler.parse(xmlData);
        }
示例#7
0
        /// <summary>
        /// CTOR - create and activate the parsing process
        /// </summary>
        /// <param name="dataSourceDefinition"></param>
        /// <param name="xmlData"></param>
        public DataviewHeadersSaxHandler(Task task, Hashtable dataviewHeaders, byte[] xmlData)
        {
            _dataviewHeaders        = dataviewHeaders;
            _task                   = task;
            _dataviewHeadersFactory = new DataviewHeaderFactory();

            MgSAXHandler mgSAXHandler = new MgSAXHandler(this);

            mgSAXHandler.parse(xmlData);
        }
示例#8
0
        /// <summary>
        /// This function reads the execution properties from an XML source
        /// </summary>
        /// <param name="XMLdata"></param>
        /// <param name="encoding"></param>
        internal void loadFromXML(String XMLdata, Encoding encoding)
        {
            MgSAXHandler mgSAXHandler = new MgSAXHandler(this);

            try
            {
                mgSAXHandler.parse(encoding.GetBytes(XMLdata), true);
            }
            catch (Exception ex)
            {
                Logger.Instance.WriteExceptionToLog(ex);
            }
        }
示例#9
0
            /// <summary>
            ///
            /// </summary>
            /// <param name="xmlSerializedTaskDefinitionsTable"></param>
            public void parse(byte[] xmlSerializedSnippetAssemblies)
            {
                MgSAXHandler mgSAXHandler = new MgSAXHandler(this);

                mgSAXHandler.parse(xmlSerializedSnippetAssemblies);
            }
        /// <summary>
        /// parse the supplied buffer using the previously supplied handler
        /// </summary>
        /// <param name="xmlSerializedTaskDefinitionsTable"></param>
        public void parse(byte[] xmlSerializedTaskDefinitionsTable)
        {
            MgSAXHandler mgSAXHandler = new MgSAXHandler(this);

            mgSAXHandler.parse(xmlSerializedTaskDefinitionsTable);
        }