站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

ActionType (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.decisiontable.parser
Class ActionType

java.lang.Object
  extended by org.drools.decisiontable.parser.ActionType

public class ActionType
extends Object

Simple holder class identifying a condition or action column etc. This is stored in a map in the main listener class, to track what type of values you can expect to see in the rows directly below. There are five types of columns relevant to a rule table.

Author:
Michael Neale

Field Summary
static int ACTION
           
static int ACTIVATIONGROUP
           
static int AGENDAGROUP
           
static int CONDITION
           
static int DESCRIPTION
           
static int DURATION
           
static int NAME
           
static int NOLOOP
           
static int PRIORITY
           
 
Method Summary
 void addCellValue(int col, String content)
          Values are added to populate the template.
static void addNewActionType(Map actionTypeMap, String value, int column, int row)
          Create a new action type that matches this cell, and add it to the map, keyed on that column.
 void addTemplate(int col, String content)
          This is where a code snippet template is added.
 SourceBuilder getSourceBuilder()
           
 void setSourceBuilder(SourceBuilder src)
          This is only set for LHS or RHS building.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONDITION

public static final int CONDITION
See Also:
Constant Field Values

ACTION

public static final int ACTION
See Also:
Constant Field Values

PRIORITY

public static final int PRIORITY
See Also:
Constant Field Values

DURATION

public static final int DURATION
See Also:
Constant Field Values

NAME

public static final int NAME
See Also:
Constant Field Values

DESCRIPTION

public static final int DESCRIPTION
See Also:
Constant Field Values

NOLOOP

public static final int NOLOOP
See Also:
Constant Field Values

ACTIVATIONGROUP

public static final int ACTIVATIONGROUP
See Also:
Constant Field Values

AGENDAGROUP

public static final int AGENDAGROUP
See Also:
Constant Field Values
Method Detail

setSourceBuilder

public void setSourceBuilder(SourceBuilder src)
This is only set for LHS or RHS building.


getSourceBuilder

public SourceBuilder getSourceBuilder()

addNewActionType

public static void addNewActionType(Map actionTypeMap,
                                    String value,
                                    int column,
                                    int row)
Create a new action type that matches this cell, and add it to the map, keyed on that column.


addTemplate

public void addTemplate(int col,
                        String content)
This is where a code snippet template is added.


addCellValue

public void addCellValue(int col,
                         String content)
Values are added to populate the template. The source builder contained needs to be "cleared" when the resultant snippet is extracted.



Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.