Skip to content

Need a way to intercept format validation for ConfigurableTypeHandler #118

Description

@GoogleCodeExporter
Using BeanIO 2.1.0.M2

In order to parse some complicated fields I have been using the "format" 
attribute on the field to pass my ConfigurableTypeHandler the information it 
needs to do the parsing.  Unfortunately, in my best determination, BeanIO is 
taking the "format" attribute and using it for validation of the field outside 
of the control of the ConfigurableTypeHandler.  SO even though my code can 
correctly parse/format the data the 'Read' fails because (underlying validator) 
doesn't understand my custom format value.

Apologies if I'm missing an existing capability but it seems the full 
implementation of a ConfigurableTypeHandler would include the ability to code a 
custom validator for your ConfigurableType.  That or the ability to disable the 
validator (I'm fine with validating at parse-time instead of read-time) while 
still using the existing "format" attribute to get that information to 
newInstance.

This issue is related to my other issue 117 (As if I had the information 
requested in 117 then I wouldn't be trying to hack the contents of the format 
attribute) but both features seem like logical additions to the library 
regardless.

Thanks!

Original issue reported on code.google.com by omnipit...@gmail.com on 18 Aug 2014 at 4:09

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions