Package org.openl.rules.binding
Class RuleRowHelper
- java.lang.Object
-
- org.openl.rules.binding.RuleRowHelper
-
public final class RuleRowHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONSTRUCTOR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcalculateHeight(ILogicalTable table)static ObjectcastConstantToExpectedType(IBindingContext bindingContext, ConstantOpenField constantOpenField, IOpenClass expectedType)static CellMetaInfocreateCellMetaInfo(IdentifierNode identifier, IMetaInfo metaInfo, NodeType nodeType)static ConstantOpenFieldfindConstantField(IBindingContext bindingContext, String source)static booleanisFormula(String value)static booleanisFormula(ILogicalTable valuesTable)static booleanisNumeric(CharSequence cs)static ObjectloadCommaSeparatedParam(IOpenClass aggregateType, IOpenClass paramType, String paramName, String ruleName, ILogicalTable cell, OpenlToolAdaptor openlAdaptor)Method to support loading Arrays through comma in one cell.static ObjectloadNativeValue(ICell cell, IOpenClass paramType)static ObjectloadParam(ILogicalTable dataTable, IOpenClass paramType, String paramName, String ruleName, OpenlToolAdaptor openlAdaptor, boolean loadSingleParamOnly)static ObjectloadSingleParam(IOpenClass paramType, String paramName, String ruleName, ILogicalTable table, OpenlToolAdaptor openlAdapter)static voidvalidateValue(Object value, IOpenClass paramType)
-
-
-
Field Detail
-
CONSTRUCTOR
public static final String CONSTRUCTOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
calculateHeight
public static int calculateHeight(ILogicalTable table)
-
loadCommaSeparatedParam
public static Object loadCommaSeparatedParam(IOpenClass aggregateType, IOpenClass paramType, String paramName, String ruleName, ILogicalTable cell, OpenlToolAdaptor openlAdaptor)
Method to support loading Arrays through comma in one cell. Gets the cell string value. Split it by comma, and process every token as single parameter. Returns array of parameters.- Returns:
- Array of parameters.
-
loadSingleParam
public static Object loadSingleParam(IOpenClass paramType, String paramName, String ruleName, ILogicalTable table, OpenlToolAdaptor openlAdapter)
-
isNumeric
public static boolean isNumeric(CharSequence cs)
-
loadNativeValue
public static Object loadNativeValue(ICell cell, IOpenClass paramType)
-
findConstantField
public static ConstantOpenField findConstantField(IBindingContext bindingContext, String source)
-
castConstantToExpectedType
public static Object castConstantToExpectedType(IBindingContext bindingContext, ConstantOpenField constantOpenField, IOpenClass expectedType)
-
isFormula
public static boolean isFormula(String value)
-
isFormula
public static boolean isFormula(ILogicalTable valuesTable)
-
createCellMetaInfo
public static CellMetaInfo createCellMetaInfo(IdentifierNode identifier, IMetaInfo metaInfo, NodeType nodeType)
-
validateValue
public static void validateValue(Object value, IOpenClass paramType) throws OpenLCompilationException
- Throws:
OpenLCompilationException
-
loadParam
public static Object loadParam(ILogicalTable dataTable, IOpenClass paramType, String paramName, String ruleName, OpenlToolAdaptor openlAdaptor, boolean loadSingleParamOnly)
-
-