I am trying to validate Date fields in my project with univocity parser.
I know there are custom validators and format annotation in univocity. But there we need to provide static date formats while implementing bean classes.
@Format(formats = "yyyy-MM-dd")
private Date createdAt
I have a specific requirement that I need to provide date formats dynamically. This means I need to parse date fields as a string and then validate them against DateTimeFormatter after parsing csv file (kind of post verifier).
Is there a way to provide either passing validation arguments at runtime? Or does univocity support a verifier that is to process all beans after creation?
Thanks!