com.dtrules.compiler.excel.util
Class ImportRuleSets
java.lang.Object
com.dtrules.compiler.excel.util.ImportRuleSets
public class ImportRuleSets
- extends Object
|
Method Summary |
boolean |
convertDecisionTable(StringBuffer data,
File file,
XMLPrinter out,
int depth)
Reads the decision table out of an Excel spreadsheet and generates the
approriate XML. |
void |
convertDecisionTables(RuleSet ruleset,
String destinationFile)
Convert all the excel files in the given directory, and all sub directories,
returning a String Buffer of all the XML produced. |
void |
convertEDD(EntityFactory ef,
RuleSet rs,
String excelFileName)
|
void |
convertEDDs(RuleSet rs,
String excelName,
String outputXMLName)
Converts a single file or an folder of files into a single EDD xml file. |
void |
setContents(File aFile,
String aContents)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImportRuleSets
public ImportRuleSets()
convertDecisionTables
public void convertDecisionTables(RuleSet ruleset,
String destinationFile)
throws Exception
- Convert all the excel files in the given directory, and all sub directories,
returning a String Buffer of all the XML produced.
- Parameters:
directory - destinationFile -
- Throws:
Exception
convertEDDs
public void convertEDDs(RuleSet rs,
String excelName,
String outputXMLName)
throws Exception
- Converts a single file or an folder of files into a single EDD xml file.
- Parameters:
excelName - outputXMLName -
- Throws:
Exception
convertEDD
public void convertEDD(EntityFactory ef,
RuleSet rs,
String excelFileName)
throws Exception
- Throws:
Exception
convertDecisionTable
public boolean convertDecisionTable(StringBuffer data,
File file,
XMLPrinter out,
int depth)
throws Exception
- Reads the decision table out of an Excel spreadsheet and generates the
approriate XML.
- Parameters:
file - sb -
- Returns:
- true if at least one decision table was found in this file
- Throws:
Exception
setContents
public void setContents(File aFile,
String aContents)
throws FileNotFoundException,
IOException
- Throws:
FileNotFoundException
IOException
Copyright © 2011 DTrules Inc. All Rights Reserved.