Re: Re: Re: Re: Re: Camel Bindy: parse a BigDecimal number with a given pattern

2014-09-11 Thread Charles Moulliard
Hi Tom, As camel-2.14 is ready for the vote, you could perhaps make a test with the Bindy modification to confirm ? https://repository.apache.org/content/repositories/orgapachecamel-1012/org/apache/camel/apache-camel/2.14.0/ Regards, On Wed, Aug 27, 2014 at 7:56 AM, Charles Moulliard wrote:

Re: Re: Re: Re: Re: Camel Bindy: parse a BigDecimal number with a given pattern

2014-08-26 Thread Charles Moulliard
Hi Tom, I will document that when we define the decimal & grouping separators, then the pattern is mandatory. Regards, On Tue, Aug 26, 2014 at 7:26 PM, wrote: > Hi Charles, > > I've tested the current master with the following result: > - @DataField(pos = 6, required = true, precision = 2, pa

Re: Re: Re: Re: Re: Camel Bindy: parse a BigDecimal number with a given pattern

2014-08-26 Thread a_blithe
very thing is fine I guess. I'm satisfied with that change and I would use option 1 (pattern only).   Thank you for your work. Best regards.   Gesendet: Dienstag, 26. August 2014 um 10:41 Uhr Von: "Charles Moulliard" An: users@camel.apache.org, a_bli...@web.de Betreff: Re:

Aw: Re: Re: Re: Re: Camel Bindy: parse a BigDecimal number with a given pattern

2014-08-26 Thread a_blithe
Hi Charles,   I've tested the current master with the following result: - @DataField(pos = 6, required = true, precision = 2, pattern = "#,###.##")   -> works perfectly with my numbers - @DataField(pos = 6, required = true, precision = 2, groupingSeparator = ",", decimalSeparator = ".")  

Re: Re: Re: Re: Camel Bindy: parse a BigDecimal number with a given pattern

2014-08-26 Thread Charles Moulliard
> >> > >>> Setting the precision already works fine and the decimal separator >> is >> > >>> treated correctly. >> > >>> The current problem is that I can't tell bindy to ignore the comma >> > sings >> > >>> in every

Re: Re: Re: Re: Camel Bindy: parse a BigDecimal number with a given pattern

2014-08-24 Thread Charles Moulliard
ood idea how to implement this feature. > > -Ursprüngliche Nachricht- > Gesendet: Thursday, 21 August 2014 um 11:40:31 Uhr > Von: "Charles Moulliard" > An: users@camel.apache.org > Betreff: Re: Re: Re: Camel Bindy: parse a BigDecimal number with a given >

Re: Re: Re: Re: Camel Bindy: parse a BigDecimal number with a given pattern

2014-08-22 Thread a_blithe
: "Charles Moulliard" An: users@camel.apache.org Betreff: Re: Re: Re: Camel Bindy: parse a BigDecimal number with a given pattern Code should contain tests to verify/validate that and throw exception if the matching is not perfect. For me the second appraoch with the pattern will require more

Re: Re: Re: Camel Bindy: parse a BigDecimal number with a given pattern

2014-08-21 Thread Charles Moulliard
> > Thank you for your work so far. > > -Ursprüngliche Nachricht- > Gesendet: Thursday, 21 August 2014 um 10:27:04 Uhr > Von: "Charles Moulliard" > An: users@camel.apache.org > Betreff: Re: Re: Camel Bindy: parse a BigDecimal number with a given > pa

Re: Re: Re: Camel Bindy: parse a BigDecimal number with a given pattern

2014-08-21 Thread a_blithe
richt- Gesendet: Thursday, 21 August 2014 um 10:27:04 Uhr Von: "Charles Moulliard" An: users@camel.apache.org Betreff: Re: Re: Camel Bindy: parse a BigDecimal number with a given pattern Here is what I suggest to implement in Camel Bindy --> https://www.dropbox.com/s/vlv3l3ic

Re: Re: Camel Bindy: parse a BigDecimal number with a given pattern

2014-08-21 Thread Charles Moulliard
rn = "#,###.##") >>> and use Double instead of BigDecimal I can keep the comma sings. But I >>> can't use Double for several reasons. >>> >>> The source code of the FormatFactory class (version 2.13.1) that I >>> linked in my question also shows

Re: Re: Camel Bindy: parse a BigDecimal number with a given pattern

2014-08-21 Thread Charles Moulliard
mma sings. But I >> can't use Double for several reasons. >> >> The source code of the FormatFactory class (version 2.13.1) that I linked >> in my question also shows that the pattern is used for Double types (and >> several other types) but not for BigDecimal types.

Re: Re: Camel Bindy: parse a BigDecimal number with a given pattern

2014-08-20 Thread Charles Moulliard
s used for Double types (and > several other types) but not for BigDecimal types. > > -Ursprüngliche Nachricht- > Gesendet: Wednesday, 20 August 2014 um 19:33:05 Uhr > Von: "Charles Moulliard" > An: users@camel.apache.org > Betreff: Re: Camel Bindy: parse a BigDe

Re: Re: Camel Bindy: parse a BigDecimal number with a given pattern

2014-08-20 Thread a_blithe
for Double types (and several other types) but not for BigDecimal types. -Ursprüngliche Nachricht- Gesendet: Wednesday, 20 August 2014 um 19:33:05 Uhr Von: "Charles Moulliard" An: users@camel.apache.org Betreff: Re: Camel Bindy: parse a BigDecimal number with a given pattern Th

Re: Camel Bindy: parse a BigDecimal number with a given pattern

2014-08-20 Thread Charles Moulliard
The @DataField of Camel bindy proposes the parameter precision like also a pattern but not a grouping separator Example @DataField(pos = 2, precision = 2, pattern = "00.00") private BigDecimal bigDecimal; Do you have an example to propose about such use case ? On Wed, Aug 20, 2014 at 3