Package org.drools.decisiontable.parser
Class RuleSheetParserUtil
java.lang.Object
org.drools.decisiontable.parser.RuleSheetParserUtil
Parking lot for utility methods that don't belong anywhere else.
-
Method Summary
Modifier and TypeMethodDescriptiongetImportList
(List<String> importCells) Create a list of Import model objects from cell contents.static String
getRuleName
(String ruleRow) getVariableList
(List<String> variableCells) Create a list of Global model objects from cell contents.static boolean
isStringMeaningTrue
(String property) static String
rc2name
(int row, int col) Convert spreadsheet row, column numbers to a cell name.
-
Method Details
-
getRuleName
-
getImportList
Create a list of Import model objects from cell contents.- Parameters:
importCells
- The cells containing text for all the classes to import.- Returns:
- A list of Import classes, which can be added to the ruleset.
-
getVariableList
Create a list of Global model objects from cell contents.- Parameters:
variableCella
- The cells containing text for all the global variables to set.- Returns:
- A list of Variable classes, which can be added to the ruleset.
-
isStringMeaningTrue
- Returns:
- true is the String could possibly mean true. False otherwise !
-
rc2name
Convert spreadsheet row, column numbers to a cell name.- Parameters:
row
- row numbercol
- the column number. Start with zero.- Returns:
- The spreadsheet name for this cell, "A" to "ZZZ".
-