public String generateRow(CsvObject object) { List<String> resultAttributes = new ArrayList<String>(); for (String attribute : attributes) { resultAttributes.add(emptyIfNull(object.getAttribute(attribute))); } return printListWithSeparator(resultAttributes, SEPARATOR); }
public void addTemplateObject(CsvObject object) { attributes.addAll(object.getAttributeNames()); }