当前页面:
在线文档首页 >
JBoss RULES 4.0.0.11754MR2 API 英文版文档
LhsBuilder (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档
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.
- Author:
- Michael Neale
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LhsBuilder
public LhsBuilder(String colDefinition)
- Parameters:
colDefinition
- The initial column definition that is shared via merged cells.
addTemplate
public void addTemplate(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 col,
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
etc. as we treat them all differently.
hasValues
public boolean hasValues()
- Specified by:
hasValues
in interface SourceBuilder
Copyright © 2001-2007
JBoss Inc.. All Rights Reserved.