driverPattern.setFactType("Driver");
LimitedEntryConditionCol52 child = new LimitedEntryConditionCol52();
child.setFactField("age");
child.setOperator("<");
child.setValue(new DTCellValue52(new Integer("18")));
child.setConstraintValueType(BaseSingleFieldConstraint.TYPE_LITERAL);
driverPattern.getChildColumns().add(child);
LimitedEntryConditionCol52 adult = new LimitedEntryConditionCol52();
adult.setFactField("age");
adult.setOperator(">=");
adult.setValue(new DTCellValue52(new Integer("18")));
adult.setConstraintValueType(BaseSingleFieldConstraint.TYPE_LITERAL);
driverPattern.getChildColumns().add(adult);
LimitedEntryConditionCol52 pensioner = new LimitedEntryConditionCol52();
pensioner.setFactField("age");
pensioner.setOperator(">=");
pensioner.setValue(new DTCellValue52(new Integer("65")));
pensioner.setConstraintValueType(BaseSingleFieldConstraint.TYPE_LITERAL);
driverPattern.getChildColumns().add(pensioner);
dt.getConditions().add(driverPattern);
ActionSetFieldCol52 message = new ActionSetFieldCol52();
message.setBoundName("m");
message.setFactField("message");
dt.getActionCols().add(message);
@SuppressWarnings("unchecked")
List<List<DTCellValue52>> data = Arrays.asList(
Arrays.asList(
new DTCellValue52(1),
new DTCellValue52("Row 1 description"),
new DTCellValue52(Boolean.TRUE),
new DTCellValue52(Boolean.FALSE),
new DTCellValue52(Boolean.FALSE),
new DTCellValue52("Row 1 message")
),
Arrays.asList(
new DTCellValue52(2),
new DTCellValue52("Row 2 description"),
new DTCellValue52(Boolean.FALSE),
new DTCellValue52(Boolean.TRUE),
new DTCellValue52(Boolean.FALSE),
new DTCellValue52("Row 2 message")
),
Arrays.asList(
new DTCellValue52(3),
new DTCellValue52("Row 3 description"),
new DTCellValue52(Boolean.FALSE),
new DTCellValue52(Boolean.FALSE),
new DTCellValue52(Boolean.TRUE),
new DTCellValue52("Row 3 message")
)
);
dt.setData(data);