Package org.drools.decisiontable
Class ExternalSpreadsheetCompiler
- java.lang.Object
-
- org.drools.decisiontable.ExternalSpreadsheetCompiler
-
public class ExternalSpreadsheetCompiler extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description ExternalSpreadsheetCompiler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcompile(InputStream xlsStream, InputStream templateStream, int startRow, int startCol)Stringcompile(InputStream xlsStream, InputStream templateStream, InputType type, int startRow, int startCol)Stringcompile(InputStream xlsStream, String worksheetName, InputStream templateStream, int startRow, int startCol)Stringcompile(InputStream xlsStream, String worksheetName, org.drools.template.parser.TemplateDataListener listener)voidcompile(InputStream xlsStream, Map<String,List<org.drools.template.parser.DataListener>> listeners)voidcompile(InputStream xlsStream, InputType type, List<org.drools.template.parser.DataListener> listeners)Stringcompile(InputStream xlsStream, InputType type, org.drools.template.parser.TemplateDataListener listener)Generates DRL from the input stream containing the spreadsheet.Stringcompile(String xls, String template, int startRow, int startCol)Stringcompile(String xls, String worksheetName, String template, int startRow, int startCol)Stringcompile(String xls, String template, InputType type, int startRow, int startCol)voidcompile(String xls, Map<String,List<org.drools.template.parser.DataListener>> listeners)voidcompile(String xls, InputType type, List<org.drools.template.parser.DataListener> listeners)
-
-
-
Method Detail
-
compile
public String compile(String xls, String template, InputType type, int startRow, int startCol)
-
compile
public String compile(String xls, String worksheetName, String template, int startRow, int startCol)
-
compile
public String compile(InputStream xlsStream, InputStream templateStream, int startRow, int startCol)
-
compile
public String compile(InputStream xlsStream, InputStream templateStream, InputType type, int startRow, int startCol)
-
compile
public String compile(InputStream xlsStream, String worksheetName, InputStream templateStream, int startRow, int startCol)
-
compile
public void compile(String xls, InputType type, List<org.drools.template.parser.DataListener> listeners)
-
compile
public void compile(String xls, Map<String,List<org.drools.template.parser.DataListener>> listeners)
-
compile
public void compile(InputStream xlsStream, InputType type, List<org.drools.template.parser.DataListener> listeners)
-
compile
public void compile(InputStream xlsStream, Map<String,List<org.drools.template.parser.DataListener>> listeners)
-
compile
public String compile(InputStream xlsStream, InputType type, org.drools.template.parser.TemplateDataListener listener)
Generates DRL from the input stream containing the spreadsheet.- Parameters:
xlsStream- The stream to the spreadsheet. Uses the first worksheet found for the decision tables, ignores others.type- The type of the file - InputType.CSV or InputType.XLSlistener-- Returns:
- DRL xml, ready for use in drools.
- Throws:
IOException
-
compile
public String compile(InputStream xlsStream, String worksheetName, org.drools.template.parser.TemplateDataListener listener)
-
-