@Test public void emptyTableHasEmptyHeaderMetaData() throws Exception { assertTrue(new ModelMetaDataEnhancer(model).getHeaderMetaData() .isEmpty()); }
public HeaderMetaData getHeaderMetaData() { int columnIndex = 0; final Map<Integer, ModelMetaData> map = new HashMap<>(); for (final BaseColumn baseColumn : model.getExpandedColumns()) { if (baseColumn instanceof ConditionCol52) { map.put(columnIndex, new ModelMetaData(model.getPattern((ConditionCol52) baseColumn), PatternType.LHS)); } else if (baseColumn instanceof ActionInsertFactCol52) { final ActionInsertFactCol52 aif = (ActionInsertFactCol52) baseColumn; map.put(columnIndex, new ModelMetaData(aif.getFactType(), aif.getBoundName(), PatternType.RHS)); } else if (baseColumn instanceof ActionSetFieldCol52) { final ActionSetFieldCol52 asf = (ActionSetFieldCol52) baseColumn; map.put(columnIndex, new ModelMetaData(getFactType(asf), asf.getBoundName(), PatternType.RHS)); } columnIndex++; } return new HeaderMetaData(map); }
ModelMetaDataEnhancer { public HeaderMetaData getHeaderMetaData() { int columnIndex = 0; final Map<Integer, ModelMetaData> map = new HashMap<>(); for (final BaseColumn baseColumn : model.getExpandedColumns()) { if (baseColumn instanceof ConditionCol52) { map.put(columnIndex, new ModelMetaData(model.getPattern((ConditionCol52) baseColumn), PatternType.LHS)); } else if (baseColumn instanceof ActionInsertFactCol52) { final ActionInsertFactCol52 aif = (ActionInsertFactCol52) baseColumn; map.put(columnIndex, new ModelMetaData(aif.getFactType(), aif.getBoundName(), PatternType.RHS)); } else if (baseColumn instanceof ActionSetFieldCol52) { final ActionSetFieldCol52 asf = (ActionSetFieldCol52) baseColumn; map.put(columnIndex, new ModelMetaData(getFactType(asf), asf.getBoundName(), PatternType.RHS)); } columnIndex++; } return new HeaderMetaData(map); } }
ModelMetaDataEnhancer { public HeaderMetaData getHeaderMetaData() { int columnIndex = 0; final Map<Integer, ModelMetaData> map = new HashMap<>(); for (final BaseColumn baseColumn : model.getExpandedColumns()) { if (baseColumn instanceof ConditionCol52) { map.put(columnIndex, new ModelMetaData(model.getPattern((ConditionCol52) baseColumn), PatternType.LHS)); } else if (baseColumn instanceof ActionInsertFactCol52) { final ActionInsertFactCol52 aif = (ActionInsertFactCol52) baseColumn; map.put(columnIndex, new ModelMetaData(aif.getFactType(), aif.getBoundName(), PatternType.RHS)); } else if (baseColumn instanceof ActionSetFieldCol52) { final ActionSetFieldCol52 asf = (ActionSetFieldCol52) baseColumn; map.put(columnIndex, new ModelMetaData(getFactType(asf), asf.getBoundName(), PatternType.RHS)); } columnIndex++; } return new HeaderMetaData(map); } ModelMetaDataEnhancer(final GuidedDecisionTable52 model); }
ModelMetaDataEnhancer { public HeaderMetaData getHeaderMetaData() { int columnIndex = 0; final Map<Integer, ModelMetaData> map = new HashMap<>(); for (final BaseColumn baseColumn : model.getExpandedColumns()) { if (baseColumn instanceof ConditionCol52) { map.put(columnIndex, new ModelMetaData(model.getPattern((ConditionCol52) baseColumn), PatternType.LHS)); } else if (baseColumn instanceof ActionInsertFactCol52) { final ActionInsertFactCol52 aif = (ActionInsertFactCol52) baseColumn; map.put(columnIndex, new ModelMetaData(aif.getFactType(), aif.getBoundName(), PatternType.RHS)); } else if (baseColumn instanceof ActionSetFieldCol52) { final ActionSetFieldCol52 asf = (ActionSetFieldCol52) baseColumn; map.put(columnIndex, new ModelMetaData(getFactType(asf), asf.getBoundName(), PatternType.RHS)); } columnIndex++; } return new HeaderMetaData(map); } ModelMetaDataEnhancer(final GuidedDecisionTable52 model); HeaderMetaData getHeaderMetaData(); }
ModelMetaDataEnhancer { public HeaderMetaData getHeaderMetaData() { int columnIndex = 0; final Map<Integer, ModelMetaData> map = new HashMap<>(); for (final BaseColumn baseColumn : model.getExpandedColumns()) { if (baseColumn instanceof ConditionCol52) { map.put(columnIndex, new ModelMetaData(model.getPattern((ConditionCol52) baseColumn), PatternType.LHS)); } else if (baseColumn instanceof ActionInsertFactCol52) { final ActionInsertFactCol52 aif = (ActionInsertFactCol52) baseColumn; map.put(columnIndex, new ModelMetaData(aif.getFactType(), aif.getBoundName(), PatternType.RHS)); } else if (baseColumn instanceof ActionSetFieldCol52) { final ActionSetFieldCol52 asf = (ActionSetFieldCol52) baseColumn; map.put(columnIndex, new ModelMetaData(getFactType(asf), asf.getBoundName(), PatternType.RHS)); } columnIndex++; } return new HeaderMetaData(map); } ModelMetaDataEnhancer(final GuidedDecisionTable52 model); HeaderMetaData getHeaderMetaData();  }