Class ADispatcherTableColumn
- java.lang.Object
-
- org.openl.rules.validation.properties.dimentional.ADispatcherTableColumn
-
- All Implemented Interfaces:
IDecisionTableColumn
- Direct Known Subclasses:
ArrayParameterColumn,SimpleParameterColumn
public abstract class ADispatcherTableColumn extends Object implements IDecisionTableColumn
Common implementation for columns that are used in dispatcher table, built by dimensional properties.- Author:
- DLiauchuk
-
-
Field Summary
Fields Modifier and Type Field Description static StringLOCAL_PARAM_SUFFIX
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetColumnType()Gets the type of the column.intgetNumberOfLocalParameters()Condition may has several local parameters.protected TablePropertyDefinitiongetProperty()protected org.openl.rules.validation.properties.dimentional.DispatcherTableRulesgetRules()StringgetRuleValue(int ruleIndex)Gets the first value for given rule index.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openl.rules.validation.properties.dimentional.IDecisionTableColumn
getCodeExpression, getParameterDeclaration, getRuleValue, getTitle
-
-
-
-
Field Detail
-
LOCAL_PARAM_SUFFIX
public static final String LOCAL_PARAM_SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getNumberOfLocalParameters
public int getNumberOfLocalParameters()
Description copied from interface:IDecisionTableColumnCondition may has several local parameters. See example.C1 paramLocal1 == paramIncome || paramLocal2 == paramIncome String paramLocal1 String paramLocal2 Local Parameter number one Local Parameter number two value11 value21 value12 value22 - Specified by:
getNumberOfLocalParametersin interfaceIDecisionTableColumn- Returns:
-
getRuleValue
public String getRuleValue(int ruleIndex)
Description copied from interface:IDecisionTableColumnGets the first value for given rule index. If theIDecisionTableColumn.getNumberOfLocalParameters()is more than 1. UseIDecisionTableColumn.getRuleValue(int, int)to get all values.- Specified by:
getRuleValuein interfaceIDecisionTableColumn- Returns:
- the first value for given rule.
-
getColumnType
public String getColumnType()
Description copied from interface:IDecisionTableColumnGets the type of the column. For more information seeDecisionTableColumnHeaders- Specified by:
getColumnTypein interfaceIDecisionTableColumn- Returns:
- string representation type of the column.
-
getRules
protected org.openl.rules.validation.properties.dimentional.DispatcherTableRules getRules()
-
getProperty
protected TablePropertyDefinition getProperty()
-
-