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:
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
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:
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 = ".")
>
>> > >>> 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
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
>
: "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
>
> 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
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
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
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.
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
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
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
14 matches
Mail list logo