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