Package org.drools.decisiontable.parser
Class ActionType
java.lang.Object
org.drools.decisiontable.parser.ActionType
Simple holder class identifying a condition, action or attribute column, also
including the rule name and a comment (called "description").
Its objects are 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 the column header, identified
by an ActionType.Code.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCellValue(int row, int column, String content, boolean _escapeQuotesFlag) voidaddCellValue(int row, int column, String content, boolean _escapeQuotesFlag, boolean trimCell) Values are added to populate the template.static voidaddNewActionType(Map<Integer, ActionType> 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.voidaddTemplate(int row, int column, String content) This is where a code snippet template is added.static EnumSet<ActionType.Code>getCode()Retrieves the code.static Map<String,ActionType.Code> voidThis is only set for LHS or RHS building.
-
Field Details
-
ATTRIBUTE_CODE_SET
-
-
Method Details
-
getAttributeCodeSet
-
getTag2code
-
getCode
Retrieves the code.- Returns:
- an enum Code value
-
setSourceBuilder
This is only set for LHS or RHS building. -
getSourceBuilder
-
addNewActionType
public static void addNewActionType(Map<Integer, ActionType> 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
This is where a code snippet template is added. -
addCellValue
-
addCellValue
public void addCellValue(int row, int column, String content, boolean _escapeQuotesFlag, boolean trimCell) Values are added to populate the template. The source builder contained needs to be "cleared" when the resultant snippet is extracted.
-