rushuat / ocell

Apache License 2.0
8 stars 1 forks source link

Regular expression support for maps request #49

Open aerfus opened 8 months ago

aerfus commented 8 months ago

Hi @rushuat ! Thank you for the library!

The idea is to adopt same approach as implemented here: https://opencsv.sourceforge.net/#multivaluedmap_based_bean_fields_many_to_one_mappings

Something like

@FieldNames("Track[0-9]+")
private MultiValuedMap<String, String> tracks;
aerfus commented 8 months ago

Hi @rushuat , please let me know if you have any concerns.

Btw I'm willing to contribute. So far the problem I found is Relflections.setValue(...) This prevents using a custom mapper...