ColumnMeta#

com.palmyralabs.palmyra.handlers.ColumnMeta

Overview#

Describes a single exported column for CsvHandler / ExcelHandler: the display name, the bean attribute to read from the row, and an optional FieldConverter for formatting values on the way out (dates, enums, currency, etc.).

Methods#

Method Signature
getName String getName()
getAttribute String getAttribute()
getConverter FieldConverter getConverter()

Example#

@Override
public List<ColumnMeta> getHeaders() {
    return List.of(
        ColumnMeta.of("loginName", "Email"),
        ColumnMeta.of("firstName", "First Name"),
        ColumnMeta.of("lastName",  "Last Name"),
        ColumnMeta.of("createdAt", "Created On", new LocalDateConverter("yyyy-MM-dd"))
    );
}