org.drools.decisiontable.parser
Class LhsBuilder
java.lang.Object
org.drools.decisiontable.parser.LhsBuilder
- All Implemented Interfaces:
- SourceBuilder
public class LhsBuilder
- extends Object
- implements 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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LhsBuilder
public LhsBuilder(int row,
int column,
String colDefinition)
- Parameters:
colDefinition
- The initial column definition that is shared via merged cells.
getActionTypeCode
public ActionType.Code getActionTypeCode()
- Specified by:
getActionTypeCode
in interface SourceBuilder
addTemplate
public void addTemplate(int row,
int column,
String content)
- Specified by:
addTemplate
in interface SourceBuilder
clearValues
public void clearValues()
- Specified by:
clearValues
in interface SourceBuilder
addCellValue
public void addCellValue(int row,
int column,
String value)
- Specified by:
addCellValue
in interface SourceBuilder
getResult
public String getResult()
- Specified by:
getResult
in interface SourceBuilder
calcFieldType
public org.drools.decisiontable.parser.LhsBuilder.FieldType calcFieldType(String content)
- 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:
hasValues
in interface SourceBuilder
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.