You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by Charles Moulliard <cm...@gmail.com> on 2010/06/17 09:55:35 UTC
Bindy and Fixed format
Hi,
I'm working on Fixed format for camel bindy. I plan to add a new
annotation "@FixedRecord" by opposition with the @CsvRecord and use
the @DataField annotation to define properties of the field.
Question : Do you prefer that we use the same annotation for CSV and
Fixed data fields or to create a new one called @FixedField ? In this
case, we should maybe rename @DataField to @CsvField for the future ?
KR,
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
Re: Bindy and Fixed format
Posted by Charles Moulliard <cm...@gmail.com>.
I will extend the annotation @DataField as the field length is
mandatory in Fixedformat but not at all used for CSV. In this
extension, I will add the align (left or right) property . Of course
length field will be moved to this annotation
KR,
Charles Moulliard
Senior Enterprise Architect (J2EE, .NET, SOA)
Apache Camel - ServiceMix Committer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Blog : http://cmoulliard.blogspot.com | Twitter : http://twitter.com/cmoulliard
Linkedin : http://www.linkedin.com/in/charlesmoulliard | Skype: cmoulliard
On Thu, Jun 17, 2010 at 12:56 PM, Claus Ibsen <cl...@gmail.com> wrote:
> On Thu, Jun 17, 2010 at 9:55 AM, Charles Moulliard <cm...@gmail.com> wrote:
>> Hi,
>>
>> I'm working on Fixed format for camel bindy. I plan to add a new
>> annotation "@FixedRecord" by opposition with the @CsvRecord and use
>> the @DataField annotation to define properties of the field.
>>
>> Question : Do you prefer that we use the same annotation for CSV and
>> Fixed data fields or to create a new one called @FixedField ? In this
>> case, we should maybe rename @DataField to @CsvField for the future ?
>>
>
> I would assume you can use the same @DataField. You may have to add
> attribute to indicate length of field for fixed length.
> I would assume its easier to just use the same.
>
> Or at least have one extend the other if 2 is needed.
>
>
>> KR,
>>
>> 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
>>
>
>
>
> --
> 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
>
Re: Bindy and Fixed format
Posted by Claus Ibsen <cl...@gmail.com>.
On Thu, Jun 17, 2010 at 9:55 AM, Charles Moulliard <cm...@gmail.com> wrote:
> Hi,
>
> I'm working on Fixed format for camel bindy. I plan to add a new
> annotation "@FixedRecord" by opposition with the @CsvRecord and use
> the @DataField annotation to define properties of the field.
>
> Question : Do you prefer that we use the same annotation for CSV and
> Fixed data fields or to create a new one called @FixedField ? In this
> case, we should maybe rename @DataField to @CsvField for the future ?
>
I would assume you can use the same @DataField. You may have to add
attribute to indicate length of field for fixed length.
I would assume its easier to just use the same.
Or at least have one extend the other if 2 is needed.
> KR,
>
> 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
>
--
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