As mentioned by claus, this mapping does not exist. This could be an excellent idea to add enumeration in the model and use it to validate the content parsed. Enumeration could be used not only for this simple case where we would like to check if we get Y, N or true, false but also to check list value and transform it.
ex : C = cancel for order process, A = accept, ... I have assigned the ticket to me and will work on that when I will add fixed length format to Bindy and solve some bugs discovered. Kind regards, Charles Moulliard Senior Enterprise Architect (J2EE, .NET, SOA) Apache Camel/ServiceMix Committer ******************************************************************* - Blog : http://cmoulliard.blogspot.com - Twitter : http://twitter.com/cmoulliard - Linkedlin : http://www.linkedin.com/in/charlesmoulliard On Tue, Jun 1, 2010 at 9:00 AM, Claus Ibsen <[email protected]> wrote: > On Tue, Jun 1, 2010 at 8:42 AM, Nick Heudecker <[email protected]> wrote: >>> How do you want to map booleans? I have never seen any CSV file with >>> "true" or "false" as values. >>> You most likely need to define a custom mapping scheme. Such as "Y" = >>> true, "N" = false etc. >>> And so you can use String type and add a isXXX boolean method yourself >>> in the bean. >>> >>> Having a mapping for boolean in Bindy is of course nice but I think it >>> requires additional mapping definition to set the rules. >>> >>> >> Does this mapping capability exist and I missed it? >> > > No I dont think so. > >> >>> >>> > >>> > Can you create tickets in JIRA about the bugs and if possible a little >>> > piece of sample to go along? >>> > http://issues.apache.org/activemq/browse/CAMEL >>> > >>> >>> I created the ticket >>> https://issues.apache.org/activemq/browse/CAMEL-2773 >>> >>> >> Thanks. >> > > > > -- > Claus Ibsen > Apache Camel Committer > > Author of Camel in Action: http://www.manning.com/ibsen/ > Open Source Integration: http://fusesource.com > Blog: http://davsclaus.blogspot.com/ > Twitter: http://twitter.com/davsclaus >
