[ 
https://issues.apache.org/jira/browse/CAMEL-6359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Lorych updated CAMEL-6359:
---------------------------------

    Description: 
The patch adds a new format for the camel-bindy component, making it possible 
to annotate enumeration types with @DataField, i.e.:

{quote}
@CsvRecord(separator=";")
public class Test {
...
    @DataField(pos = 12)
    private Colour colour;
...
}
{quote}
where Colour is an arbitrary enum type.

The marshalling/unmarshalling is based on the name() and valueOf() methods.


I have extended already existing unit test BindyCarQuoteAndCommaDelimiterTest 
to test the behavior.


  was:
The patch adds a new format for the camel-bindy component, making it possible 
to annotate enumeration types with @DataField, i.e.:

@CsvRecord(separator=";")
public class Test {
...
    @DataField(pos = 12)
    private Colour colour;
...
}
where Colour is an arbitrary enum type.

The marshalling/unmarshalling is based on the name() and valueOf() methods.


I have extended already existing unit test BindyCarQuoteAndCommaDelimiterTest 
to test the behavior.


    
> camel-bindy - new EnumFormat
> ----------------------------
>
>                 Key: CAMEL-6359
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6359
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-bindy
>            Reporter: Daniel Lorych
>             Fix For: 2.12.0
>
>         Attachments: enumFormat.patch
>
>
> The patch adds a new format for the camel-bindy component, making it possible 
> to annotate enumeration types with @DataField, i.e.:
> {quote}
> @CsvRecord(separator=";")
> public class Test {
> ...
>     @DataField(pos = 12)
>     private Colour colour;
> ...
> }
> {quote}
> where Colour is an arbitrary enum type.
> The marshalling/unmarshalling is based on the name() and valueOf() methods.
> I have extended already existing unit test BindyCarQuoteAndCommaDelimiterTest 
> to test the behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to