Class SimpleParameterColumn
- java.lang.Object
-
- org.openl.rules.validation.properties.dimentional.ADispatcherTableColumn
-
- org.openl.rules.validation.properties.dimentional.SimpleParameterColumn
-
- All Implemented Interfaces:
IDecisionTableColumn
public class SimpleParameterColumn extends ADispatcherTableColumn
Column that is used in the dispatching table, built by dimension properties of the group of tables. Handles the column with simple dimension property(not of array type).- Author:
- DLiauchuk
-
-
Field Summary
-
Fields inherited from class org.openl.rules.validation.properties.dimentional.ADispatcherTableColumn
LOCAL_PARAM_SUFFIX
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCodeExpression()Gets the string representation of the code expression cell(the next cell after column type definition seeIDecisionTableColumn.getColumnType()).StringgetParameterDeclaration()Gets the string representation of the parameter declaration cell(the next cell after code expression cell seeIDecisionTableColumn.getCodeExpression()).StringgetRuleValue(int ruleIndex, int elementNum)As condition may has several local parameters seeIDecisionTableColumn.getNumberOfLocalParameters(), so the rule values is a matrix, where first index is the rule index, the second - the index of local parameter.StringgetTitle()Gets the string representation of the title(business name) cell(the next cell after the parameter declaration cell seeIDecisionTableColumn.getParameterDeclaration()).-
Methods inherited from class org.openl.rules.validation.properties.dimentional.ADispatcherTableColumn
getColumnType, getNumberOfLocalParameters, getProperty, getRules, getRuleValue
-
-
-
-
Method Detail
-
getCodeExpression
public String getCodeExpression()
Description copied from interface:IDecisionTableColumnGets the string representation of the code expression cell(the next cell after column type definition seeIDecisionTableColumn.getColumnType()).- Returns:
- string representation of the code expression cell.
-
getTitle
public String getTitle()
Description copied from interface:IDecisionTableColumnGets the string representation of the title(business name) cell(the next cell after the parameter declaration cell seeIDecisionTableColumn.getParameterDeclaration()).- Returns:
- the string representation of the title(business name) cell
-
getParameterDeclaration
public String getParameterDeclaration()
Description copied from interface:IDecisionTableColumnGets the string representation of the parameter declaration cell(the next cell after code expression cell seeIDecisionTableColumn.getCodeExpression()).- Returns:
- the string representation of the parameter declaration cell
-
getRuleValue
public String getRuleValue(int ruleIndex, int elementNum)
Description copied from interface:IDecisionTableColumnAs condition may has several local parameters seeIDecisionTableColumn.getNumberOfLocalParameters(), so the rule values is a matrix, where first index is the rule index, the second - the index of local parameter. If theIDecisionTableColumn.getNumberOfLocalParameters()is more than 1, use this method to get all rule values.- Parameters:
ruleIndex- index of the ruleelementNum- index of the local parameter- Returns:
- the value for the appropriate rule and local parameter
-
-