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 StringARRAY_ELEMENTS_SEPARATORstatic StringARRAY_ELEMENTS_SEPARATOR_ESCAPERstatic StringCONSTRUCTOR
-
Method Summary
-
-
-
Field Detail
-
ARRAY_ELEMENTS_SEPARATOR_ESCAPER
public static final String ARRAY_ELEMENTS_SEPARATOR_ESCAPER
- See Also:
- Constant Field Values
-
ARRAY_ELEMENTS_SEPARATOR
public static final String ARRAY_ELEMENTS_SEPARATOR
- See Also:
- Constant Field Values
-
CONSTRUCTOR
public static final String CONSTRUCTOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
calculateHeight
public static int calculateHeight(ILogicalTable table)
-
extractElementsFromCommaSeparatedArray
public static String[] extractElementsFromCommaSeparatedArray(ILogicalTable cell)
-
loadCommaSeparatedParam
public static Object loadCommaSeparatedParam(IOpenClass aggregateType, IOpenClass paramType, String paramName, String ruleName, ILogicalTable cell, OpenlToolAdaptor openlAdaptor)
Method to support loading Arrays throughARRAY_ELEMENTS_SEPARATORin one cell. Gets the cell string value. Split it byARRAY_ELEMENTS_SEPARATOR, 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)
-
createConstantNodeUsage
public static SimpleNodeUsage createConstantNodeUsage(ConstantOpenField constantOpenField, int start, int end)
-
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)
-
-