Class ActionType


  • public class ActionType
    extends java.lang.Object
    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.
    • Field Detail

      • ATTRIBUTE_CODE_SET

        public static final java.util.EnumSet<ActionType.Code> ATTRIBUTE_CODE_SET
    • Method Detail

      • getAttributeCodeSet

        public static java.util.EnumSet<ActionType.Code> getAttributeCodeSet()
      • getTag2code

        public static java.util.Map<java.lang.String,​ActionType.Code> getTag2code()
      • getCode

        public ActionType.Code getCode()
        Retrieves the code.
        Returns:
        an enum Code value
      • setSourceBuilder

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

        public static void addNewActionType​(java.util.Map<java.lang.Integer,​ActionType> actionTypeMap,
                                            java.lang.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 row,
                                int column,
                                java.lang.String content)
        This is where a code snippet template is added.
      • addCellValue

        public void addCellValue​(int row,
                                 int column,
                                 java.lang.String content,
                                 boolean _escapeQuotesFlag)
      • addCellValue

        public void addCellValue​(int row,
                                 int column,
                                 java.lang.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.