예제 #1
0
 private void makeRuleSet() {
   listener = new DefaultRuleSheetListener();
   listener.startSheet("bad_sheet");
   row = 1;
   listener.newRow(row, 2);
   listener.newCell(row, 1, "RuleSet", DataListener.NON_MERGED);
   listener.newCell(row, 2, "myRuleSet", DataListener.NON_MERGED);
 }
예제 #2
0
 private void makeRow(int row, String... values) throws DecisionTableParseException {
   listener.newRow(row, values.length);
   for (int i = 0; i < values.length; i++) {
     if (values[i] != null) {
       listener.newCell(row, i + 1, values[i], DataListener.NON_MERGED);
     }
   }
 }
예제 #3
0
 private void makeRuleTable() {
   listener.newRow(10, 1);
   listener.newCell(10, 1, "RuleTable myRuleTable", DataListener.NON_MERGED);
 }
예제 #4
0
 private void makeAttribute(String key, String val) {
   row++;
   listener.newRow(row, 2);
   listener.newCell(row, 1, key, DataListener.NON_MERGED);
   listener.newCell(row, 2, val, DataListener.NON_MERGED);
 }