|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.decisiontable.SpreadsheetDRLConverter
public class SpreadsheetDRLConverter
Constructor Summary | |
---|---|
SpreadsheetDRLConverter()
|
Method Summary | |
---|---|
java.lang.String |
convertToDRL(java.io.InputStream xlsStream)
Generates DRL from the input stream containing the spreadsheet. |
java.lang.String |
convertToDRL(java.io.InputStream stream,
java.lang.String worksheetName)
Looks for a named worksheet to find the decision tables on. |
java.lang.String |
convertToDRL(java.lang.String classPathResource)
Convenience implementation, taking rules from the classpath. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpreadsheetDRLConverter()
Method Detail |
---|
public java.lang.String convertToDRL(java.io.InputStream xlsStream)
xlsStream
- The stream to the spreadsheet. Uses the first worksheet found
for the decision tables, ignores others.
public java.lang.String convertToDRL(java.lang.String classPathResource)
classPathResource
- full class path to the spreadsheet you wish to convert to DRL.
Uses the first worksheet for the decision tables.
public java.lang.String convertToDRL(java.io.InputStream stream, java.lang.String worksheetName)
stream
- The stream of the decision tables (spreadsheet).worksheetName
- The name of the worksheet that the decision tables live on.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |