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 Details

    • getRuleName

      public static String getRuleName(String ruleRow)
    • getImportList

      public static List<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<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 number
      col - the column number. Start with zero.
      Returns:
      The spreadsheet name for this cell, "A" to "ZZZ".