当前页面:
在线文档首页 >
JBoss RULES 3.0.6 API 英文版文档
LhsBuilder - JBoss RULES 3.0.6 API 英文版文档
org.drools.decisiontable.parser
Class LhsBuilder
java.lang.Object
org.drools.decisiontable.parser.LhsBuilder
- All Implemented Interfaces:
- SourceBuilder
public class LhsBuilder
- extends java.lang.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.
Constructor Summary |
LhsBuilder(java.lang.String colDefinition)
|
Method Summary |
void |
addCellValue(int col,
java.lang.String value)
|
void |
addTemplate(int column,
java.lang.String content)
|
org.drools.decisiontable.parser.LhsBuilder.FieldType |
calcFieldType(java.lang.String content)
Work out the type of "field" that is being specified,
as in :
age
age <
age == $param
etc. as we treat them all differently. |
void |
clearValues()
|
java.lang.String |
getResult()
|
boolean |
hasValues()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LhsBuilder
public LhsBuilder(java.lang.String colDefinition)
- Parameters:
colDefinition
- The initial column definition that is shared via merged cells.
addTemplate
public void addTemplate(int column,
java.lang.String content)
- Specified by:
addTemplate
in interface SourceBuilder
clearValues
public void clearValues()
- Specified by:
clearValues
in interface SourceBuilder
addCellValue
public void addCellValue(int col,
java.lang.String value)
- Specified by:
addCellValue
in interface SourceBuilder
getResult
public java.lang.String getResult()
- Specified by:
getResult
in interface SourceBuilder
calcFieldType
public org.drools.decisiontable.parser.LhsBuilder.FieldType calcFieldType(java.lang.String content)
- Work out the type of "field" that is being specified,
as in :
age
age <
age == $param
etc. as we treat them all differently.
hasValues
public boolean hasValues()
- Specified by:
hasValues
in interface SourceBuilder