public static void main(final String[] args) { final String fileName = (args.length > 0 ? args[0] : Messages.getString("ExampleDataFile")); final MakeTableModel mtm = new MakeTableModel(); final DefaultTableModel dtm = mtm.buildDataModel(fileName); LOGGER.debug("dtm: " + dtm.getRowCount()); final TableModelWriter writer = getTableModelWriter("ODF"); writer.setFileName("conv.xml"); writer.setTableStructure(dtm, null, null); writer.write(); }
static void populateSegmentMap( final TableModelWriter writerInstance, final String propertyKeyPrefix) { final List<String> tableSegmentKeys = Messages.getKeysWithPrefix(PROPERTIES, propertyKeyPrefix); for (String tableSegmentKey : tableSegmentKeys) { writerInstance .getSegmentMap() .put( tableSegmentKey.substring(propertyKeyPrefix.length()), Messages.getString(PROPERTIES, tableSegmentKey)); } }