public class DecisionData
extends java.lang.Object
Constructor and Description |
---|
DecisionData(java.lang.String xlsDataFileName)
Creates an instance of OpenRulesEngine
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.String name)
Returns an object defined in Excel Data table or a Variable table "name".
|
java.lang.Object[] |
getArray(java.lang.String name)
Returns an array of objects defined in Excel Data table "name"
|
java.lang.Object |
getVariable(java.lang.String name)
Returns an object defined in Excel Variable table "name"
|
java.util.ArrayList<DecisionTest> |
readTestCases(java.lang.String decisionTests)
Reads an array of test cases from Excel table of the type "DecisionTableTest" called "decisionTests"
|
public DecisionData(java.lang.String xlsDataFileName)
xlsDataFileName
- public java.lang.Object get(java.lang.String name)
name
- a string with the name of the Excel Data table (e.g. "employees")public java.lang.Object[] getArray(java.lang.String name)
name
- a string with the name of the Excel Data table (e.g. "employees")public java.lang.Object getVariable(java.lang.String name)
name
- a string with the name of the Excel Variable table (e.g. "employee")public java.util.ArrayList<DecisionTest> readTestCases(java.lang.String decisionTests)
decisionTests
- a string that represents a name of Excel table of the type "DecisionTableTest"