Class AConditionBuilder

    • Method Detail

      • build

        public final int build​(IWritableGrid gridModel,
                               int numberOfRules,
                               int columnStartIndex,
                               int rowStartIndex)
        Description copied from interface: IDecisionTableColumnBuilder
        Build the condition to the sheet with the given number of rules and start writing from the given column and row indexes.
        Specified by:
        build in interface IDecisionTableColumnBuilder
        Parameters:
        gridModel - the place for writing conditions
        numberOfRules - number of rules that will be written
        columnStartIndex - the index of the column on the sheet to start writing
        rowStartIndex - the index of the row on the sheet to start writing
        Returns:
        the index of the column that is next to the written condition and is free for further writing.
      • writeColumnType

        protected abstract void writeColumnType​(IWritableGrid gridModel,
                                                int columnStartIndex,
                                                int rowStartIndex)
      • writeCodeExpression

        protected abstract void writeCodeExpression​(IWritableGrid gridModel,
                                                    int columnStartIndex,
                                                    int rowStartIndex)
      • writeParameterDeclaration

        protected abstract void writeParameterDeclaration​(IWritableGrid gridModel,
                                                          int columnStartIndex,
                                                          int rowStartIndex)
      • writeTitle

        protected abstract void writeTitle​(IWritableGrid gridModel,
                                           int columnStartIndex,
                                           int rowStartIndex)
      • writeRuleValue

        protected abstract void writeRuleValue​(IWritableGrid gridModel,
                                               int numberOfRules,
                                               int columnStartIndex,
                                               int rowStartIndex)