org.drools.decisiontable
Class ExternalSpreadsheetCompiler

java.lang.Object
  extended by org.drools.decisiontable.ExternalSpreadsheetCompiler

public class ExternalSpreadsheetCompiler
extends Object


Constructor Summary
ExternalSpreadsheetCompiler()
           
 
Method Summary
 String compile(InputStream xlsStream, InputStream templateStream, InputType type, int startRow, int startCol)
           
 String compile(InputStream xlsStream, InputStream templateStream, int startRow, int startCol)
           
 void compile(InputStream xlsStream, InputType type, List<DataListener> listeners)
           
 String compile(InputStream xlsStream, InputType type, TemplateDataListener listener)
          Generates DRL from the input stream containing the spreadsheet.
 void compile(InputStream xlsStream, Map<String,List<DataListener>> listeners)
           
 String compile(InputStream xlsStream, String worksheetName, InputStream templateStream, int startRow, int startCol)
           
 String compile(InputStream xlsStream, String worksheetName, TemplateDataListener listener)
           
 void compile(String xls, InputType type, List<DataListener> listeners)
           
 void compile(String xls, Map<String,List<DataListener>> listeners)
           
 String compile(String xls, String template, InputType type, int startRow, int startCol)
           
 String compile(String xls, String template, int startRow, int startCol)
           
 String compile(String xls, String worksheetName, String template, int startRow, int startCol)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalSpreadsheetCompiler

public ExternalSpreadsheetCompiler()
Method Detail

compile

public String compile(String xls,
                      String template,
                      int startRow,
                      int startCol)

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<DataListener> listeners)

compile

public void compile(String xls,
                    Map<String,List<DataListener>> listeners)

compile

public void compile(InputStream xlsStream,
                    InputType type,
                    List<DataListener> listeners)

compile

public void compile(InputStream xlsStream,
                    Map<String,List<DataListener>> listeners)

compile

public String compile(InputStream xlsStream,
                      InputType type,
                      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.XLS
listener -
Returns:
DRL xml, ready for use in drools.
Throws:
IOException

compile

public String compile(InputStream xlsStream,
                      String worksheetName,
                      TemplateDataListener listener)


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.