@Test public void testLoadCsv() { final ExternalSpreadsheetCompiler converter = new ExternalSpreadsheetCompiler(); final String drl = converter.compile( "/data/ComplexWorkbook.csv", "/templates/test_template2.drl", InputType.CSV, 10, 2 ); assertNotNull( drl ); assertTrue( drl.indexOf( "myObject.setIsValid(1, 2)" ) > 0 ); assertTrue( drl.indexOf( "myObject.size () > 2" ) > 0 ); assertTrue( drl.indexOf( "Foo(myObject.getColour().equals(red),\n myObject.size () > 1" ) > 0 ); }
public String compile(final String xls, final String template, int startRow, int startCol) { return compile( xls, template, InputType.XLS, startRow, startCol ); }
ExternalSpreadsheetCompiler { public String compile(final String xls, final String template, int startRow, int startCol) { return compile( xls, template, InputType.XLS, startRow, startCol ); } }
ExternalSpreadsheetCompiler { public String compile(final String xls, final String template, int startRow, int startCol) { return compile( xls, template, InputType.XLS, startRow, startCol ); }  }
ExternalSpreadsheetCompiler { public String compile(final String xls, final String template, int startRow, int startCol) { return compile( xls, template, InputType.XLS, startRow, startCol ); }  String compile(final String xls,
                          final String template,
                          int startRow,
                          int startCol); String compile(final String xls,
                          final String template,
                          InputType type,
                          int startRow,
                          int startCol); String compile(final String xls,
                          final String worksheetName,
                          final String template,
                          int startRow,
                          int startCol); String compile(final InputStream xlsStream,
                          final InputStream templateStream,
                          int startRow,
                          int startCol); String compile(final InputStream xlsStream,
                          final InputStream templateStream,
                          InputType type,
                          int startRow,
                          int startCol); String compile(final InputStream xlsStream,
                          final String worksheetName,
                          final InputStream templateStream,
                          int startRow,
                          int startCol); void compile(final String xls,
                        InputType type,
                        final List<DataListener> listeners); void compile(final String xls,
                        final Map<String, List<DataListener>> listeners); void compile(final InputStream xlsStream,
                        InputType type,
                        final List<DataListener> listeners); void compile(final InputStream xlsStream,
                        final Map<String, List<DataListener>> listeners); String compile(final InputStream xlsStream,
                          final InputType type,
                          final TemplateDataListener listener); String compile(final InputStream xlsStream,
                          final String worksheetName,
                          final TemplateDataListener listener); }
ExternalSpreadsheetCompiler { public String compile(final String xls, final String template, int startRow, int startCol) { return compile( xls, template, InputType.XLS, startRow, startCol ); }  String compile(final String xls,
                          final String template,
                          int startRow,
                          int startCol); String compile(final String xls,
                          final String template,
                          InputType type,
                          int startRow,
                          int startCol); String compile(final String xls,
                          final String worksheetName,
                          final String template,
                          int startRow,
                          int startCol); String compile(final InputStream xlsStream,
                          final InputStream templateStream,
                          int startRow,
                          int startCol); String compile(final InputStream xlsStream,
                          final InputStream templateStream,
                          InputType type,
                          int startRow,
                          int startCol); String compile(final InputStream xlsStream,
                          final String worksheetName,
                          final InputStream templateStream,
                          int startRow,
                          int startCol); void compile(final String xls,
                        InputType type,
                        final List<DataListener> listeners); void compile(final String xls,
                        final Map<String, List<DataListener>> listeners); void compile(final InputStream xlsStream,
                        InputType type,
                        final List<DataListener> listeners); void compile(final InputStream xlsStream,
                        final Map<String, List<DataListener>> listeners); String compile(final InputStream xlsStream,
                          final InputType type,
                          final TemplateDataListener listener); String compile(final InputStream xlsStream,
                          final String worksheetName,
                          final TemplateDataListener listener);  }