ColumnTemplate: Pattern
Make possible for a column template to match several columns with a pattern:
- name or pattern. That would probably deeply impact code, as name seems to play an important role.
- name + optional suffix pattern. That could have less impact on code, and seems sufficient.
SheetTemplate:
- add containsMatchingColumn
- add getMatchingColumn
- add Builder.put(ColumnTemplate, suffix, value)
ColumnTemplate:
- add suffix (Pattern)
- add getName(suffix)
- add matchesName(name)
- Consistency between suffix and usage?
Need to modify Header to support patterns.
One must take care of performances. It is not acceptable to have a linear time to find the column template matching a name.
Exporting is possible with JSON and XML, but importing is probably more complex / impossible when pattern is used.
- Add mapping between user names and JSON/XML names at begining of sheet
- Add Header in StreamExporter.beginSheet
- Add a way to pass Header of each template in Exporter
- Pass a Supplier?
- Pass a Header/Template pair ?
- Create a dedicated class?
- Pass additional names for patterns?
Edited by Damien Carbonne