Class AConditionBuilder
- java.lang.Object
-
- org.openl.rules.validation.properties.dimentional.AConditionBuilder
-
- All Implemented Interfaces:
IDecisionTableColumnBuilder
- Direct Known Subclasses:
ArrayConditionBuilder,SimpleConditionBuilder
public abstract class AConditionBuilder extends Object implements IDecisionTableColumnBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intbuild(IWritableGrid gridModel, int numberOfRules, int columnStartIndex, int rowStartIndex)Build the condition to the sheet with the given number of rules and start writing from the given column and row indexes.IDecisionTableColumngetCondition()protected abstract voidwriteCodeExpression(IWritableGrid gridModel, int columnStartIndex, int rowStartIndex)protected abstract voidwriteColumnType(IWritableGrid gridModel, int columnStartIndex, int rowStartIndex)protected abstract voidwriteParameterDeclaration(IWritableGrid gridModel, int columnStartIndex, int rowStartIndex)protected abstract voidwriteRuleValue(IWritableGrid gridModel, int numberOfRules, int columnStartIndex, int rowStartIndex)protected abstract voidwriteTitle(IWritableGrid gridModel, int columnStartIndex, int rowStartIndex)
-
-
-
Method Detail
-
build
public final int build(IWritableGrid gridModel, int numberOfRules, int columnStartIndex, int rowStartIndex)
Description copied from interface:IDecisionTableColumnBuilderBuild the condition to the sheet with the given number of rules and start writing from the given column and row indexes.- Specified by:
buildin interfaceIDecisionTableColumnBuilder- Parameters:
gridModel- the place for writing conditionsnumberOfRules- number of rules that will be writtencolumnStartIndex- the index of the column on the sheet to start writingrowStartIndex- 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.
-
getCondition
public IDecisionTableColumn getCondition()
-
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)
-
-