Package org.drools.decisiontable.parser
Class RuleSheetParserUtil
- java.lang.Object
-
- org.drools.decisiontable.parser.RuleSheetParserUtil
-
public class RuleSheetParserUtil extends Object
Parking lot for utility methods that don't belong anywhere else.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<org.drools.template.model.Import>getImportList(List<String> importCells)Create a list of Import model objects from cell contents.static StringgetRuleName(String ruleRow)static List<org.drools.template.model.Global>getVariableList(List<String> variableCells)Create a list of Global model objects from cell contents.static booleanisStringMeaningTrue(String property)static Stringrc2name(int row, int col)Convert spreadsheet row, column numbers to a cell name.
-
-
-
Method Detail
-
getImportList
public static List<org.drools.template.model.Import> getImportList(List<String> importCells)
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
public static List<org.drools.template.model.Global> getVariableList(List<String> variableCells)
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
public static boolean isStringMeaningTrue(String property)
- Returns:
- true is the String could possibly mean true. False otherwise !
-
rc2name
public static String rc2name(int row, int col)
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".
-
-