Esempio n. 1
0
        private static List <List <Entity> > formatTableForInterpreter(XMLTable table)
        {
            List <List <Entity> > ret = new List <List <Entity> >();

            for (int i = 0; i < table.Rows.Length; i++)
            {
                ret.Add(formatRowForInterpreter(table, table.Rows[i]));
            }
            return(ret);
        }
Esempio n. 2
0
        private static List <Entity> formatRowForInterpreter(XMLTable table, Row row)
        {
            List <Entity> ret = new List <Entity>();

            if (row.Cells.Length != table.Fields.Length)
            {
                throw new XMLParserException("A row has different column values than the table");
            }
            for (int i = 0; i < table.Fields.Length; i++)
            {
                ret.Add(formatCellForInterpreter(table.Fields[i], row.Cells[i]));
            }
            return(ret);
        }