Package org.drools.decisiontable.parser
Class LhsBuilder
java.lang.Object
org.drools.decisiontable.parser.LhsBuilder
- All Implemented Interfaces:
SourceBuilder
This utility will build up a list of constraints for a column.
For instance, the column has been spanned across multiple cells, and the cells below
contain the constraints.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCellValue(int row, int column, String value) voidaddCellValue(int row, int column, String value, boolean trim) voidaddTemplate(int row, int column, String content) org.drools.decisiontable.parser.LhsBuilder.FieldTypecalcFieldType(String content) Work out the type of "field" that is being specified, as in : age age < age == $param age == $1 || age == $2 forall{age < $}{,}voidintboolean
-
Constructor Details
-
LhsBuilder
- Parameters:
colDefinition- The initial column definition that is shared via merged cells.
-
-
Method Details
-
getActionTypeCode
- Specified by:
getActionTypeCodein interfaceSourceBuilder
-
addTemplate
- Specified by:
addTemplatein interfaceSourceBuilder
-
clearValues
public void clearValues()- Specified by:
clearValuesin interfaceSourceBuilder
-
addCellValue
- Specified by:
addCellValuein interfaceSourceBuilder
-
addCellValue
- Specified by:
addCellValuein interfaceSourceBuilder
-
getResult
- Specified by:
getResultin interfaceSourceBuilder
-
calcFieldType
Work out the type of "field" that is being specified, as in : age age < age == $param age == $1 || age == $2 forall{age < $}{,} etc. as we treat them all differently. -
hasValues
public boolean hasValues()- Specified by:
hasValuesin interfaceSourceBuilder
-
getColumn
public int getColumn()- Specified by:
getColumnin interfaceSourceBuilder
-