Package org.openl.rules.dt
Class LookupHeadersTransformer
- java.lang.Object
-
- org.openl.rules.dt.TwoDimensionDecisionTableTransformer
-
- org.openl.rules.dt.LookupHeadersTransformer
-
- All Implemented Interfaces:
CoordinatesTransformer
public class LookupHeadersTransformer extends TwoDimensionDecisionTableTransformer
Transformer for lookup table headers values. The common case is that the RET section is the last one in the header, as shown below:
C1 C2 C3 HC1 HC2 HC3 RET1
For users convenience it is possible to define RET section in any place of lookup header after vertical conditions. Example:
And we need to transform it to common case for further work.C1 C2 C3 HC1 RET1 HC2 HC3 - Author:
- DLiauchuk
-
-
Field Summary
-
Fields inherited from class org.openl.rules.dt.TwoDimensionDecisionTableTransformer
HCONDITION_HEADERS_HEIGHT
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumn(int col, int row)intgetRow(int col, int row)-
Methods inherited from class org.openl.rules.dt.TwoDimensionDecisionTableTransformer
getHeight, getWidth
-
-
-
-
Method Detail
-
getColumn
public int getColumn(int col, int row)- Specified by:
getColumnin interfaceCoordinatesTransformer- Overrides:
getColumnin classTwoDimensionDecisionTableTransformer- Parameters:
col- The column of logical table.row- The row of logical table.- Returns:
- Coordinates inside the source table.
-
getRow
public int getRow(int col, int row)- Specified by:
getRowin interfaceCoordinatesTransformer- Overrides:
getRowin classTwoDimensionDecisionTableTransformer- Parameters:
col- The column of logical table.row- The row of logical table.- Returns:
- Coordinates inside the source table.
-
-