|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dtrules.compiler.excel.util.Excel2XML
public class Excel2XML
| Constructor Summary | |
|---|---|
Excel2XML(RuleSet ruleSet)
We assume that the Rule Set provided gives us all the parameters needed to open a set of Excel Files and convert them into XML files. |
|
Excel2XML(String path,
String rulesDirectoryXML,
String ruleset)
Opens the RulesDirectory for the caller. |
|
| Method Summary | |
|---|---|
void |
compile(int NumErrorsToReport,
PrintStream err)
Compiles the RuleSet |
static void |
compile(String path,
String rulesConfig,
String ruleset,
String applicationRepositoryPath)
|
static void |
compile(String path,
String rulesConfig,
String ruleset,
String applicationRepositoryPath,
String[] mappings)
Helper function for compiling Rule Sets. |
void |
convertRuleset()
Converts the RuleSet |
static void |
copyFile(String file1,
String file2)
Copy a file Throws a runtime exception if anything goes wrong. |
void |
generateMap(int version,
String mapping,
String filename)
Generates a default Mapping File. |
void |
generateMap(String mapping,
String filename)
Deprecated. |
DTCompiler |
getDTCompiler()
Return the Last DecisionTable Compiler used. |
RuleSet |
getRuleSet()
Returns the ruleSet being used by this compiler |
void |
reset()
We reset the Rules Directory after we have modified the XML used to define the Rules Directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Excel2XML(RuleSet ruleSet)
propertyfile -
public Excel2XML(String path,
String rulesDirectoryXML,
String ruleset)
rulesDirectoryXML - ruleset - | Method Detail |
|---|
public RuleSet getRuleSet()
public void reset()
public DTCompiler getDTCompiler()
public void convertRuleset()
throws Exception
Exception
public static void copyFile(String file1,
String file2)
public void compile(int NumErrorsToReport,
PrintStream err)
NumErrorsToReport - How many errors to printerr - The output stream which to print the errors
@Deprecated
public void generateMap(String mapping,
String filename)
throws Exception
mapping - Tag for the mapping file. Attributes with this tag in the
EDD will be mapped in the generated mappingfilename - File name for the mapping file generated
Exception
public void generateMap(int version,
String mapping,
String filename)
throws Exception
mapping - Version of EDD to map.mapping - Tag for the mapping file. Attributes with this tag in the
EDD will be mapped in the generated mappingfilename - File name for the mapping file generated
Exception
public static void compile(String path,
String rulesConfig,
String ruleset,
String applicationRepositoryPath)
throws Exception
Exception
public static void compile(String path,
String rulesConfig,
String ruleset,
String applicationRepositoryPath,
String[] mappings)
throws Exception
path - The Base Path in the file system. All other files
are defined as relative points away from this Base PathrulesConfig - The name of the Rule Set configuration fileruleset - The name of the Rule Set to compile. (Most of the parameters
to the compiler are pulled from the configuration fileapplicationRepositoryPath - This is a relative path to a possibly different
version of this Rule Set. Generally, this is the version
that is currently deployed. The compile will produce
a compare of changes between the Rule Set under development,
and this Rule Set. If null, this comparison will be skipped.
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||