}
private void fillRulePropertyConditions(Sheet sheet, ModelDeclaration model) {
int index = 1;
for (PropertyDeclaration property : model.getDeclaredProperties()) {
Cell name = getCell(sheet, RuleSheetFormat.PROPERTY_NAME, index, 0);
name.setCellStyle(info.lockedStyle);
name.setCellValue(property.getName().identifier);
Cell value = getCell(sheet, RuleSheetFormat.VALUE_CONDITION, index, 0);
value.setCellStyle(info.optionsStyle);
if (index == 1) {
value.setCellValue(ValueConditionKind.KEY.getText());
} else {
value.setCellValue(ValueConditionKind.ANY.getText());
}
Cell nullity = getCell(sheet, RuleSheetFormat.NULLITY_CONDITION, index, 0);
nullity.setCellStyle(info.optionsStyle);
nullity.setCellValue(NullityConditionKind.NORMAL.getText());
Cell comments = getCell(sheet, RuleSheetFormat.COMMENTS, index, 0);
comments.setCellStyle(info.dataStyle);
comments.setCellValue(property.getDescription() == null
? property.getType().toString() : property.getDescription().getText());
Cell options = getCell(sheet, RuleSheetFormat.EXTRA_OPTIONS, index, 0);
options.setCellStyle(info.dataStyle);
index++;
}
int start = RuleSheetFormat.PROPERTY_NAME.getRowIndex() + 1;