org.drools.decisiontable.parser
Class RuleSheetParserUtil

java.lang.Object
  extended by org.drools.decisiontable.parser.RuleSheetParserUtil

public class RuleSheetParserUtil
extends Object

Parking lot for utility methods that don't belong anywhere else.


Method Summary
static List<Import> getImportList(List<String> importCells)
          Create a list of Import model objects from cell contents.
static String getRuleName(String ruleRow)
           
static List<Global> 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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".


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.