You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Niels Peter Strandberg (JIRA)" <ji...@apache.org> on 2011/06/15 20:40:47 UTC

[jira] [Created] (CAMEL-4108) Add more flexibility to DataField

Add more flexibility to DataField
---------------------------------

                 Key: CAMEL-4108
                 URL: https://issues.apache.org/jira/browse/CAMEL-4108
             Project: Camel
          Issue Type: New Feature
          Components: camel-bindy
            Reporter: Niels Peter Strandberg
            Priority: Minor


1) Add a "toEnd" to the DateField:

CSV file:

w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet


The model:

@CsvRecord(separator = ",")
public class Org {

	@DataField(pos = 1)
	private String type;
	
	@DataField(pos = 2)
	private String name;

	@DataField(pos = 3, toEnd = true)
    private List<Integer> ids;

}

The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r


The model:

@CsvRecord(separator = ",")
public class Order {

	@DataField(pos = 1)
	private String type;

	@DataField(pos = 2)
	private String name;

	@DataField(pos = 3, endPos = 5)
    private List<Integer> lines;

	@DataField(pos = 6)
	private String action;

}

I have a prototype for the unmarshalling, but not for unmarshalling.

/Niels Peter Strandberg

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4108) camel-bindy - Add more flexibility to DataField

Posted by "Niels Peter Strandberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niels Peter Strandberg updated CAMEL-4108:
------------------------------------------

    Description: 
1) Add a "toEnd" to the DateField:

CSV file:
{code}
w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet
{code}

The model:

{code}
@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;
	
   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, toEnd = true)
   private List<Integer> ids;

}
{code}

The "ids" list will then contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

{code}
w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r
{code}

The model:

{code}
@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;

   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, endPos = 5)
    private List<Integer> ids;

   @DataField(pos = 6)
   private String action;

}
{code}

The "ids" list will then contain the result for pos 3 to 5. 


I have a prototype for the unmarshalling.

/Niels Peter Strandberg

  was:
1) Add a "toEnd" to the DateField:

CSV file:
{code}
w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet
{code}

The model:

{code}
@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;
	
   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, toEnd = true)
   private List<Integer> ids;

}
{code}

The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

{code}
w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r
{code}

The model:

{code}
@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;

   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, endPos = 5)
    private List<Integer> ids;

   @DataField(pos = 6)
   private String action;

}
{code}

The "ids" list will the contain the result for pos 3 to 5. 


I have a prototype for the unmarshalling.

/Niels Peter Strandberg


> camel-bindy - Add more flexibility to DataField
> -----------------------------------------------
>
>                 Key: CAMEL-4108
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4108
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-bindy
>            Reporter: Niels Peter Strandberg
>            Priority: Minor
>
> 1) Add a "toEnd" to the DateField:
> CSV file:
> {code}
> w,RegionH,1234,4567,5565
> w,KIT,233,233
> d,Rigshospitalet
> {code}
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
> 	
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, toEnd = true)
>    private List<Integer> ids;
> }
> {code}
> The "ids" list will then contain the result for pos 3 to the end of the line. 
> 2) Add a "endPos" to the DateField:
> CSV file:
> {code}
> w,RegionH,1234,4567,5565,m
> w,KIT,233,233,4545,m
> d,Rigshospitalet,343434,3434,3434,r
> {code}
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, endPos = 5)
>     private List<Integer> ids;
>    @DataField(pos = 6)
>    private String action;
> }
> {code}
> The "ids" list will then contain the result for pos 3 to 5. 
> I have a prototype for the unmarshalling.
> /Niels Peter Strandberg

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4108) Add more flexibility to DataField

Posted by "Niels Peter Strandberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niels Peter Strandberg updated CAMEL-4108:
------------------------------------------

    Description: 
1) Add a "toEnd" to the DateField:

CSV file:

w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet


The model:

{{
@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;
	
   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, toEnd = true)
   private List<Integer> ids;

}
}}
The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r


The model:

@CsvRecord(separator = ",")
public class Order {

	@DataField(pos = 1)
	private String type;

	@DataField(pos = 2)
	private String name;

	@DataField(pos = 3, endPos = 5)
    private List<Integer> lines;

	@DataField(pos = 6)
	private String action;

}

I have a prototype for the unmarshalling, but not for unmarshalling.

/Niels Peter Strandberg

  was:
1) Add a "toEnd" to the DateField:

CSV file:

w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet


The model:

@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;
	
   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, toEnd = true)
   private List<Integer> ids;

}

The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r


The model:

@CsvRecord(separator = ",")
public class Order {

	@DataField(pos = 1)
	private String type;

	@DataField(pos = 2)
	private String name;

	@DataField(pos = 3, endPos = 5)
    private List<Integer> lines;

	@DataField(pos = 6)
	private String action;

}

I have a prototype for the unmarshalling, but not for unmarshalling.

/Niels Peter Strandberg


> Add more flexibility to DataField
> ---------------------------------
>
>                 Key: CAMEL-4108
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4108
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-bindy
>            Reporter: Niels Peter Strandberg
>            Priority: Minor
>
> 1) Add a "toEnd" to the DateField:
> CSV file:
> w,RegionH,1234,4567,5565
> w,KIT,233,233
> d,Rigshospitalet
> The model:
> {{
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
> 	
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, toEnd = true)
>    private List<Integer> ids;
> }
> }}
> The "ids" list will the contain the result for pos 3 to the end of the line. 
> 2) Add a "endPos" to the DateField:
> CSV file:
> w,RegionH,1234,4567,5565,m
> w,KIT,233,233,4545,m
> d,Rigshospitalet,343434,3434,3434,r
> The model:
> @CsvRecord(separator = ",")
> public class Order {
> 	@DataField(pos = 1)
> 	private String type;
> 	@DataField(pos = 2)
> 	private String name;
> 	@DataField(pos = 3, endPos = 5)
>     private List<Integer> lines;
> 	@DataField(pos = 6)
> 	private String action;
> }
> I have a prototype for the unmarshalling, but not for unmarshalling.
> /Niels Peter Strandberg

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4108) Add more flexibility to DataField

Posted by "Niels Peter Strandberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niels Peter Strandberg updated CAMEL-4108:
------------------------------------------

    Description: 
1) Add a "toEnd" to the DateField:

CSV file:
{code}
w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet
{code}

The model:

{code}
@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;
	
   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, toEnd = true)
   private List<Integer> ids;

}
{code}

The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

{code}
w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r
{code}

The model:

{code}
@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;

   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, endPos = 5)
    private List<Integer> ids;

   @DataField(pos = 6)
   private String action;

}
{code}

The "ids" list will the contain the result for pos 3 to 5. 


I have a prototype for the unmarshalling.

/Niels Peter Strandberg

  was:
1) Add a "toEnd" to the DateField:

CSV file:
{code}
w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet
{code}

The model:

{code}
@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;
	
   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, toEnd = true)
   private List<Integer> ids;

}
{code}

The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

{code}
w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r
{code}

The model:

{code}
@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;

   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, endPos = 5)
    private List<Integer> ids;

   @DataField(pos = 6)
   private String action;

}
{code}

The "ids" list will the contain the result for pos 3 to 5. 


I have a prototype for the unmarshalling, but not for unmarshalling.

/Niels Peter Strandberg


> Add more flexibility to DataField
> ---------------------------------
>
>                 Key: CAMEL-4108
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4108
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-bindy
>            Reporter: Niels Peter Strandberg
>            Priority: Minor
>
> 1) Add a "toEnd" to the DateField:
> CSV file:
> {code}
> w,RegionH,1234,4567,5565
> w,KIT,233,233
> d,Rigshospitalet
> {code}
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
> 	
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, toEnd = true)
>    private List<Integer> ids;
> }
> {code}
> The "ids" list will the contain the result for pos 3 to the end of the line. 
> 2) Add a "endPos" to the DateField:
> CSV file:
> {code}
> w,RegionH,1234,4567,5565,m
> w,KIT,233,233,4545,m
> d,Rigshospitalet,343434,3434,3434,r
> {code}
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, endPos = 5)
>     private List<Integer> ids;
>    @DataField(pos = 6)
>    private String action;
> }
> {code}
> The "ids" list will the contain the result for pos 3 to 5. 
> I have a prototype for the unmarshalling.
> /Niels Peter Strandberg

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4108) Add more flexibility to DataField

Posted by "Niels Peter Strandberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niels Peter Strandberg updated CAMEL-4108:
------------------------------------------

    Description: 
1) Add a "toEnd" to the DateField:

CSV file:
{code}
w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet
{code}

The model:

{code}
@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;
	
   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, toEnd = true)
   private List<Integer> ids;

}
{code}

The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

{code}
w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r
{code}

The model:

{code}
@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;

   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, endPos = 5)
    private List<Integer> ids;

   @DataField(pos = 6)
   private String action;

}
{code}

The "ids" list will the contain the result for pos 3 to 5. 


I have a prototype for the unmarshalling, but not for unmarshalling.

/Niels Peter Strandberg

  was:
1) Add a "toEnd" to the DateField:

CSV file:
{code}
w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet
{code}

The model:

{code}
@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;
	
   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, toEnd = true)
   private List<Integer> ids;

}
{code}

The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

{code}
w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r
{code}

The model:

{code}
@CsvRecord(separator = ",")
public class Org {

	@DataField(pos = 1)
	private String type;

	@DataField(pos = 2)
	private String name;

	@DataField(pos = 3, endPos = 5)
    private List<Integer> lines;

	@DataField(pos = 6)
	private String action;

}
{code}

I have a prototype for the unmarshalling, but not for unmarshalling.

/Niels Peter Strandberg


> Add more flexibility to DataField
> ---------------------------------
>
>                 Key: CAMEL-4108
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4108
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-bindy
>            Reporter: Niels Peter Strandberg
>            Priority: Minor
>
> 1) Add a "toEnd" to the DateField:
> CSV file:
> {code}
> w,RegionH,1234,4567,5565
> w,KIT,233,233
> d,Rigshospitalet
> {code}
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
> 	
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, toEnd = true)
>    private List<Integer> ids;
> }
> {code}
> The "ids" list will the contain the result for pos 3 to the end of the line. 
> 2) Add a "endPos" to the DateField:
> CSV file:
> {code}
> w,RegionH,1234,4567,5565,m
> w,KIT,233,233,4545,m
> d,Rigshospitalet,343434,3434,3434,r
> {code}
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, endPos = 5)
>     private List<Integer> ids;
>    @DataField(pos = 6)
>    private String action;
> }
> {code}
> The "ids" list will the contain the result for pos 3 to 5. 
> I have a prototype for the unmarshalling, but not for unmarshalling.
> /Niels Peter Strandberg

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4108) Add more flexibility to DataField

Posted by "Niels Peter Strandberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niels Peter Strandberg updated CAMEL-4108:
------------------------------------------

    Description: 
1) Add a "toEnd" to the DateField:

CSV file:

w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet


The model:

{{@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;
	
   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, toEnd = true)
   private List<Integer> ids;

}}}

The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r


The model:

@CsvRecord(separator = ",")
public class Order {

	@DataField(pos = 1)
	private String type;

	@DataField(pos = 2)
	private String name;

	@DataField(pos = 3, endPos = 5)
    private List<Integer> lines;

	@DataField(pos = 6)
	private String action;

}

I have a prototype for the unmarshalling, but not for unmarshalling.

/Niels Peter Strandberg

  was:
1) Add a "toEnd" to the DateField:

CSV file:

w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet


The model:

{{
@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;
	
   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, toEnd = true)
   private List<Integer> ids;

}
}}
The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r


The model:

@CsvRecord(separator = ",")
public class Order {

	@DataField(pos = 1)
	private String type;

	@DataField(pos = 2)
	private String name;

	@DataField(pos = 3, endPos = 5)
    private List<Integer> lines;

	@DataField(pos = 6)
	private String action;

}

I have a prototype for the unmarshalling, but not for unmarshalling.

/Niels Peter Strandberg


> Add more flexibility to DataField
> ---------------------------------
>
>                 Key: CAMEL-4108
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4108
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-bindy
>            Reporter: Niels Peter Strandberg
>            Priority: Minor
>
> 1) Add a "toEnd" to the DateField:
> CSV file:
> w,RegionH,1234,4567,5565
> w,KIT,233,233
> d,Rigshospitalet
> The model:
> {{@CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
> 	
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, toEnd = true)
>    private List<Integer> ids;
> }}}
> The "ids" list will the contain the result for pos 3 to the end of the line. 
> 2) Add a "endPos" to the DateField:
> CSV file:
> w,RegionH,1234,4567,5565,m
> w,KIT,233,233,4545,m
> d,Rigshospitalet,343434,3434,3434,r
> The model:
> @CsvRecord(separator = ",")
> public class Order {
> 	@DataField(pos = 1)
> 	private String type;
> 	@DataField(pos = 2)
> 	private String name;
> 	@DataField(pos = 3, endPos = 5)
>     private List<Integer> lines;
> 	@DataField(pos = 6)
> 	private String action;
> }
> I have a prototype for the unmarshalling, but not for unmarshalling.
> /Niels Peter Strandberg

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4108) Add more flexibility to DataField

Posted by "Niels Peter Strandberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niels Peter Strandberg updated CAMEL-4108:
------------------------------------------

    Description: 
1) Add a "toEnd" to the DateField:

CSV file:

w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet


The model:

{code}
@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;
	
   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, toEnd = true)
   private List<Integer> ids;

}
{code}

The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r


The model:

{code}
@CsvRecord(separator = ",")
public class Order {

	@DataField(pos = 1)
	private String type;

	@DataField(pos = 2)
	private String name;

	@DataField(pos = 3, endPos = 5)
    private List<Integer> lines;

	@DataField(pos = 6)
	private String action;

}
{code}

I have a prototype for the unmarshalling, but not for unmarshalling.

/Niels Peter Strandberg

  was:
1) Add a "toEnd" to the DateField:

CSV file:

w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet


The model:

{code:title=Bar.java|borderStyle=solid}
@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;
	
   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, toEnd = true)
   private List<Integer> ids;

}
{code}

The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r


The model:

@CsvRecord(separator = ",")
public class Order {

	@DataField(pos = 1)
	private String type;

	@DataField(pos = 2)
	private String name;

	@DataField(pos = 3, endPos = 5)
    private List<Integer> lines;

	@DataField(pos = 6)
	private String action;

}

I have a prototype for the unmarshalling, but not for unmarshalling.

/Niels Peter Strandberg


> Add more flexibility to DataField
> ---------------------------------
>
>                 Key: CAMEL-4108
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4108
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-bindy
>            Reporter: Niels Peter Strandberg
>            Priority: Minor
>
> 1) Add a "toEnd" to the DateField:
> CSV file:
> w,RegionH,1234,4567,5565
> w,KIT,233,233
> d,Rigshospitalet
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
> 	
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, toEnd = true)
>    private List<Integer> ids;
> }
> {code}
> The "ids" list will the contain the result for pos 3 to the end of the line. 
> 2) Add a "endPos" to the DateField:
> CSV file:
> w,RegionH,1234,4567,5565,m
> w,KIT,233,233,4545,m
> d,Rigshospitalet,343434,3434,3434,r
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Order {
> 	@DataField(pos = 1)
> 	private String type;
> 	@DataField(pos = 2)
> 	private String name;
> 	@DataField(pos = 3, endPos = 5)
>     private List<Integer> lines;
> 	@DataField(pos = 6)
> 	private String action;
> }
> {code}
> I have a prototype for the unmarshalling, but not for unmarshalling.
> /Niels Peter Strandberg

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4108) Add more flexibility to DataField/Bindy

Posted by "Niels Peter Strandberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niels Peter Strandberg updated CAMEL-4108:
------------------------------------------

    Summary: Add more flexibility to DataField/Bindy  (was: Add more flexibility to DataField)

> Add more flexibility to DataField/Bindy
> ---------------------------------------
>
>                 Key: CAMEL-4108
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4108
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-bindy
>            Reporter: Niels Peter Strandberg
>            Priority: Minor
>
> 1) Add a "toEnd" to the DateField:
> CSV file:
> {code}
> w,RegionH,1234,4567,5565
> w,KIT,233,233
> d,Rigshospitalet
> {code}
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
> 	
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, toEnd = true)
>    private List<Integer> ids;
> }
> {code}
> The "ids" list will the contain the result for pos 3 to the end of the line. 
> 2) Add a "endPos" to the DateField:
> CSV file:
> {code}
> w,RegionH,1234,4567,5565,m
> w,KIT,233,233,4545,m
> d,Rigshospitalet,343434,3434,3434,r
> {code}
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, endPos = 5)
>     private List<Integer> ids;
>    @DataField(pos = 6)
>    private String action;
> }
> {code}
> The "ids" list will the contain the result for pos 3 to 5. 
> I have a prototype for the unmarshalling.
> /Niels Peter Strandberg

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4108) camel-bindy - Add more flexibility to DataField

Posted by "Niels Peter Strandberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13050319#comment-13050319 ] 

Niels Peter Strandberg commented on CAMEL-4108:
-----------------------------------------------

Ok, so you suggest that I replace toEnd=true with endPos=-1. Then endPos=0 is the default value when endPos should be ignored.

Is this feature something that would be useful for bindy?

> camel-bindy - Add more flexibility to DataField
> -----------------------------------------------
>
>                 Key: CAMEL-4108
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4108
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-bindy
>            Reporter: Niels Peter Strandberg
>            Priority: Minor
>             Fix For: 2.9.0
>
>
> 1) Add a "toEnd" to the DateField:
> CSV file:
> {code}
> w,RegionH,1234,4567,5565
> w,KIT,233,233
> d,Rigshospitalet
> {code}
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
> 	
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, toEnd = true)
>    private List<Integer> ids;
> }
> {code}
> The "ids" list will then contain the result for pos 3 to the end of the line. 
> 2) Add a "endPos" to the DateField:
> CSV file:
> {code}
> w,RegionH,1234,4567,5565,m
> w,KIT,233,233,4545,m
> d,Rigshospitalet,343434,3434,3434,r
> {code}
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, endPos = 5)
>     private List<Integer> ids;
>    @DataField(pos = 6)
>    private String action;
> }
> {code}
> The "ids" list will then contain the result for pos 3 to 5. 
> I have a prototype for the unmarshalling.
> /Niels Peter Strandberg

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4108) camel-bindy - Add more flexibility to DataField

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-4108:
-------------------------------

    Fix Version/s: 2.9.0

> camel-bindy - Add more flexibility to DataField
> -----------------------------------------------
>
>                 Key: CAMEL-4108
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4108
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-bindy
>            Reporter: Niels Peter Strandberg
>            Priority: Minor
>             Fix For: 2.9.0
>
>
> 1) Add a "toEnd" to the DateField:
> CSV file:
> {code}
> w,RegionH,1234,4567,5565
> w,KIT,233,233
> d,Rigshospitalet
> {code}
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
> 	
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, toEnd = true)
>    private List<Integer> ids;
> }
> {code}
> The "ids" list will then contain the result for pos 3 to the end of the line. 
> 2) Add a "endPos" to the DateField:
> CSV file:
> {code}
> w,RegionH,1234,4567,5565,m
> w,KIT,233,233,4545,m
> d,Rigshospitalet,343434,3434,3434,r
> {code}
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, endPos = 5)
>     private List<Integer> ids;
>    @DataField(pos = 6)
>    private String action;
> }
> {code}
> The "ids" list will then contain the result for pos 3 to 5. 
> I have a prototype for the unmarshalling.
> /Niels Peter Strandberg

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4108) camel-bindy - Add more flexibility to DataField

Posted by "Niels Peter Strandberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niels Peter Strandberg updated CAMEL-4108:
------------------------------------------

    Summary: camel-bindy - Add more flexibility to DataField  (was: Add more flexibility to DataField/Bindy)

> camel-bindy - Add more flexibility to DataField
> -----------------------------------------------
>
>                 Key: CAMEL-4108
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4108
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-bindy
>            Reporter: Niels Peter Strandberg
>            Priority: Minor
>
> 1) Add a "toEnd" to the DateField:
> CSV file:
> {code}
> w,RegionH,1234,4567,5565
> w,KIT,233,233
> d,Rigshospitalet
> {code}
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
> 	
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, toEnd = true)
>    private List<Integer> ids;
> }
> {code}
> The "ids" list will the contain the result for pos 3 to the end of the line. 
> 2) Add a "endPos" to the DateField:
> CSV file:
> {code}
> w,RegionH,1234,4567,5565,m
> w,KIT,233,233,4545,m
> d,Rigshospitalet,343434,3434,3434,r
> {code}
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, endPos = 5)
>     private List<Integer> ids;
>    @DataField(pos = 6)
>    private String action;
> }
> {code}
> The "ids" list will the contain the result for pos 3 to 5. 
> I have a prototype for the unmarshalling.
> /Niels Peter Strandberg

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4108) Add more flexibility to DataField

Posted by "Niels Peter Strandberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niels Peter Strandberg updated CAMEL-4108:
------------------------------------------

    Description: 
1) Add a "toEnd" to the DateField:

CSV file:

w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet


The model:

{code:title=Bar.java|borderStyle=solid}
@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;
	
   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, toEnd = true)
   private List<Integer> ids;

}
{code}

The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r


The model:

@CsvRecord(separator = ",")
public class Order {

	@DataField(pos = 1)
	private String type;

	@DataField(pos = 2)
	private String name;

	@DataField(pos = 3, endPos = 5)
    private List<Integer> lines;

	@DataField(pos = 6)
	private String action;

}

I have a prototype for the unmarshalling, but not for unmarshalling.

/Niels Peter Strandberg

  was:
1) Add a "toEnd" to the DateField:

CSV file:

w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet


The model:

{{
@CsvRecord(separator = ",")
public class Org \{

   @DataField(pos = 1)
   private String type;
	
   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, toEnd = true)
   private List<Integer> ids;

\}
}}

The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r


The model:

@CsvRecord(separator = ",")
public class Order {

	@DataField(pos = 1)
	private String type;

	@DataField(pos = 2)
	private String name;

	@DataField(pos = 3, endPos = 5)
    private List<Integer> lines;

	@DataField(pos = 6)
	private String action;

}

I have a prototype for the unmarshalling, but not for unmarshalling.

/Niels Peter Strandberg


> Add more flexibility to DataField
> ---------------------------------
>
>                 Key: CAMEL-4108
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4108
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-bindy
>            Reporter: Niels Peter Strandberg
>            Priority: Minor
>
> 1) Add a "toEnd" to the DateField:
> CSV file:
> w,RegionH,1234,4567,5565
> w,KIT,233,233
> d,Rigshospitalet
> The model:
> {code:title=Bar.java|borderStyle=solid}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
> 	
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, toEnd = true)
>    private List<Integer> ids;
> }
> {code}
> The "ids" list will the contain the result for pos 3 to the end of the line. 
> 2) Add a "endPos" to the DateField:
> CSV file:
> w,RegionH,1234,4567,5565,m
> w,KIT,233,233,4545,m
> d,Rigshospitalet,343434,3434,3434,r
> The model:
> @CsvRecord(separator = ",")
> public class Order {
> 	@DataField(pos = 1)
> 	private String type;
> 	@DataField(pos = 2)
> 	private String name;
> 	@DataField(pos = 3, endPos = 5)
>     private List<Integer> lines;
> 	@DataField(pos = 6)
> 	private String action;
> }
> I have a prototype for the unmarshalling, but not for unmarshalling.
> /Niels Peter Strandberg

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4108) Add more flexibility to DataField

Posted by "Niels Peter Strandberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niels Peter Strandberg updated CAMEL-4108:
------------------------------------------

    Description: 
1) Add a "toEnd" to the DateField:

CSV file:

w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet


The model:

{quote}
@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;
	
   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, toEnd = true)
   private List<Integer> ids;

}
{quote}

The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r


The model:

@CsvRecord(separator = ",")
public class Order {

	@DataField(pos = 1)
	private String type;

	@DataField(pos = 2)
	private String name;

	@DataField(pos = 3, endPos = 5)
    private List<Integer> lines;

	@DataField(pos = 6)
	private String action;

}

I have a prototype for the unmarshalling, but not for unmarshalling.

/Niels Peter Strandberg

  was:
1) Add a "toEnd" to the DateField:

CSV file:

w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet


The model:

{{@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;
	
   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, toEnd = true)
   private List<Integer> ids;

}}}

The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r


The model:

@CsvRecord(separator = ",")
public class Order {

	@DataField(pos = 1)
	private String type;

	@DataField(pos = 2)
	private String name;

	@DataField(pos = 3, endPos = 5)
    private List<Integer> lines;

	@DataField(pos = 6)
	private String action;

}

I have a prototype for the unmarshalling, but not for unmarshalling.

/Niels Peter Strandberg


> Add more flexibility to DataField
> ---------------------------------
>
>                 Key: CAMEL-4108
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4108
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-bindy
>            Reporter: Niels Peter Strandberg
>            Priority: Minor
>
> 1) Add a "toEnd" to the DateField:
> CSV file:
> w,RegionH,1234,4567,5565
> w,KIT,233,233
> d,Rigshospitalet
> The model:
> {quote}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
> 	
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, toEnd = true)
>    private List<Integer> ids;
> }
> {quote}
> The "ids" list will the contain the result for pos 3 to the end of the line. 
> 2) Add a "endPos" to the DateField:
> CSV file:
> w,RegionH,1234,4567,5565,m
> w,KIT,233,233,4545,m
> d,Rigshospitalet,343434,3434,3434,r
> The model:
> @CsvRecord(separator = ",")
> public class Order {
> 	@DataField(pos = 1)
> 	private String type;
> 	@DataField(pos = 2)
> 	private String name;
> 	@DataField(pos = 3, endPos = 5)
>     private List<Integer> lines;
> 	@DataField(pos = 6)
> 	private String action;
> }
> I have a prototype for the unmarshalling, but not for unmarshalling.
> /Niels Peter Strandberg

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4108) camel-bindy - Add more flexibility to DataField

Posted by "Claus Ibsen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-4108:
-------------------------------

    Fix Version/s:     (was: 2.9.0)
                   2.10
    
> camel-bindy - Add more flexibility to DataField
> -----------------------------------------------
>
>                 Key: CAMEL-4108
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4108
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-bindy
>            Reporter: Niels Peter Strandberg
>            Priority: Minor
>             Fix For: 2.10
>
>
> 1) Add a "toEnd" to the DateField:
> CSV file:
> {code}
> w,RegionH,1234,4567,5565
> w,KIT,233,233
> d,Rigshospitalet
> {code}
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
> 	
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, toEnd = true)
>    private List<Integer> ids;
> }
> {code}
> The "ids" list will then contain the result for pos 3 to the end of the line. 
> 2) Add a "endPos" to the DateField:
> CSV file:
> {code}
> w,RegionH,1234,4567,5565,m
> w,KIT,233,233,4545,m
> d,Rigshospitalet,343434,3434,3434,r
> {code}
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, endPos = 5)
>     private List<Integer> ids;
>    @DataField(pos = 6)
>    private String action;
> }
> {code}
> The "ids" list will then contain the result for pos 3 to 5. 
> I have a prototype for the unmarshalling.
> /Niels Peter Strandberg

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4108) camel-bindy - Add more flexibility to DataField

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13050935#comment-13050935 ] 

Claus Ibsen commented on CAMEL-4108:
------------------------------------

Yeah we love contributions

> camel-bindy - Add more flexibility to DataField
> -----------------------------------------------
>
>                 Key: CAMEL-4108
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4108
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-bindy
>            Reporter: Niels Peter Strandberg
>            Priority: Minor
>             Fix For: 2.9.0
>
>
> 1) Add a "toEnd" to the DateField:
> CSV file:
> {code}
> w,RegionH,1234,4567,5565
> w,KIT,233,233
> d,Rigshospitalet
> {code}
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
> 	
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, toEnd = true)
>    private List<Integer> ids;
> }
> {code}
> The "ids" list will then contain the result for pos 3 to the end of the line. 
> 2) Add a "endPos" to the DateField:
> CSV file:
> {code}
> w,RegionH,1234,4567,5565,m
> w,KIT,233,233,4545,m
> d,Rigshospitalet,343434,3434,3434,r
> {code}
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, endPos = 5)
>     private List<Integer> ids;
>    @DataField(pos = 6)
>    private String action;
> }
> {code}
> The "ids" list will then contain the result for pos 3 to 5. 
> I have a prototype for the unmarshalling.
> /Niels Peter Strandberg

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4108) Add more flexibility to DataField

Posted by "Niels Peter Strandberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niels Peter Strandberg updated CAMEL-4108:
------------------------------------------

    Description: 
1) Add a "toEnd" to the DateField:

CSV file:
{code}
w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet
{code}

The model:

{code}
@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;
	
   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, toEnd = true)
   private List<Integer> ids;

}
{code}

The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

{code}
w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r
{code}

The model:

{code}
@CsvRecord(separator = ",")
public class Org {

	@DataField(pos = 1)
	private String type;

	@DataField(pos = 2)
	private String name;

	@DataField(pos = 3, endPos = 5)
    private List<Integer> lines;

	@DataField(pos = 6)
	private String action;

}
{code}

I have a prototype for the unmarshalling, but not for unmarshalling.

/Niels Peter Strandberg

  was:
1) Add a "toEnd" to the DateField:

CSV file:

w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet


The model:

{code}
@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;
	
   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, toEnd = true)
   private List<Integer> ids;

}
{code}

The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r


The model:

{code}
@CsvRecord(separator = ",")
public class Order {

	@DataField(pos = 1)
	private String type;

	@DataField(pos = 2)
	private String name;

	@DataField(pos = 3, endPos = 5)
    private List<Integer> lines;

	@DataField(pos = 6)
	private String action;

}
{code}

I have a prototype for the unmarshalling, but not for unmarshalling.

/Niels Peter Strandberg


> Add more flexibility to DataField
> ---------------------------------
>
>                 Key: CAMEL-4108
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4108
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-bindy
>            Reporter: Niels Peter Strandberg
>            Priority: Minor
>
> 1) Add a "toEnd" to the DateField:
> CSV file:
> {code}
> w,RegionH,1234,4567,5565
> w,KIT,233,233
> d,Rigshospitalet
> {code}
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
> 	
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, toEnd = true)
>    private List<Integer> ids;
> }
> {code}
> The "ids" list will the contain the result for pos 3 to the end of the line. 
> 2) Add a "endPos" to the DateField:
> CSV file:
> {code}
> w,RegionH,1234,4567,5565,m
> w,KIT,233,233,4545,m
> d,Rigshospitalet,343434,3434,3434,r
> {code}
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Org {
> 	@DataField(pos = 1)
> 	private String type;
> 	@DataField(pos = 2)
> 	private String name;
> 	@DataField(pos = 3, endPos = 5)
>     private List<Integer> lines;
> 	@DataField(pos = 6)
> 	private String action;
> }
> {code}
> I have a prototype for the unmarshalling, but not for unmarshalling.
> /Niels Peter Strandberg

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4108) Add more flexibility to DataField

Posted by "Niels Peter Strandberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niels Peter Strandberg updated CAMEL-4108:
------------------------------------------

    Description: 
1) Add a "toEnd" to the DateField:

CSV file:

w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet


The model:

{quote}
@CsvRecord(separator = ",")
public class Org \{

   @DataField(pos = 1)
   private String type;
	
   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, toEnd = true)
   private List<Integer> ids;

\}
{quote}

The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r


The model:

@CsvRecord(separator = ",")
public class Order {

	@DataField(pos = 1)
	private String type;

	@DataField(pos = 2)
	private String name;

	@DataField(pos = 3, endPos = 5)
    private List<Integer> lines;

	@DataField(pos = 6)
	private String action;

}

I have a prototype for the unmarshalling, but not for unmarshalling.

/Niels Peter Strandberg

  was:
1) Add a "toEnd" to the DateField:

CSV file:

w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet


The model:

{quote}
@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;
	
   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, toEnd = true)
   private List<Integer> ids;

}
{quote}

The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r


The model:

@CsvRecord(separator = ",")
public class Order {

	@DataField(pos = 1)
	private String type;

	@DataField(pos = 2)
	private String name;

	@DataField(pos = 3, endPos = 5)
    private List<Integer> lines;

	@DataField(pos = 6)
	private String action;

}

I have a prototype for the unmarshalling, but not for unmarshalling.

/Niels Peter Strandberg


> Add more flexibility to DataField
> ---------------------------------
>
>                 Key: CAMEL-4108
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4108
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-bindy
>            Reporter: Niels Peter Strandberg
>            Priority: Minor
>
> 1) Add a "toEnd" to the DateField:
> CSV file:
> w,RegionH,1234,4567,5565
> w,KIT,233,233
> d,Rigshospitalet
> The model:
> {quote}
> @CsvRecord(separator = ",")
> public class Org \{
>    @DataField(pos = 1)
>    private String type;
> 	
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, toEnd = true)
>    private List<Integer> ids;
> \}
> {quote}
> The "ids" list will the contain the result for pos 3 to the end of the line. 
> 2) Add a "endPos" to the DateField:
> CSV file:
> w,RegionH,1234,4567,5565,m
> w,KIT,233,233,4545,m
> d,Rigshospitalet,343434,3434,3434,r
> The model:
> @CsvRecord(separator = ",")
> public class Order {
> 	@DataField(pos = 1)
> 	private String type;
> 	@DataField(pos = 2)
> 	private String name;
> 	@DataField(pos = 3, endPos = 5)
>     private List<Integer> lines;
> 	@DataField(pos = 6)
> 	private String action;
> }
> I have a prototype for the unmarshalling, but not for unmarshalling.
> /Niels Peter Strandberg

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4108) camel-bindy - Add more flexibility to DataField

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13050229#comment-13050229 ] 

Claus Ibsen commented on CAMEL-4108:
------------------------------------

Ah its like a range you ask for
@DataField(pos = 3, endPos = 5)
or
@DataField(pos = 3, endPos = -1)
(where -1 means unlimited/toEnd)

> camel-bindy - Add more flexibility to DataField
> -----------------------------------------------
>
>                 Key: CAMEL-4108
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4108
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-bindy
>            Reporter: Niels Peter Strandberg
>            Priority: Minor
>             Fix For: 2.9.0
>
>
> 1) Add a "toEnd" to the DateField:
> CSV file:
> {code}
> w,RegionH,1234,4567,5565
> w,KIT,233,233
> d,Rigshospitalet
> {code}
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
> 	
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, toEnd = true)
>    private List<Integer> ids;
> }
> {code}
> The "ids" list will then contain the result for pos 3 to the end of the line. 
> 2) Add a "endPos" to the DateField:
> CSV file:
> {code}
> w,RegionH,1234,4567,5565,m
> w,KIT,233,233,4545,m
> d,Rigshospitalet,343434,3434,3434,r
> {code}
> The model:
> {code}
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, endPos = 5)
>     private List<Integer> ids;
>    @DataField(pos = 6)
>    private String action;
> }
> {code}
> The "ids" list will then contain the result for pos 3 to 5. 
> I have a prototype for the unmarshalling.
> /Niels Peter Strandberg

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4108) Add more flexibility to DataField

Posted by "Niels Peter Strandberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niels Peter Strandberg updated CAMEL-4108:
------------------------------------------

    Description: 
1) Add a "toEnd" to the DateField:

CSV file:

w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet


The model:

@CsvRecord(separator = ",")
public class Org {

   @DataField(pos = 1)
   private String type;
	
   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, toEnd = true)
   private List<Integer> ids;

}

The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r


The model:

@CsvRecord(separator = ",")
public class Order {

	@DataField(pos = 1)
	private String type;

	@DataField(pos = 2)
	private String name;

	@DataField(pos = 3, endPos = 5)
    private List<Integer> lines;

	@DataField(pos = 6)
	private String action;

}

I have a prototype for the unmarshalling, but not for unmarshalling.

/Niels Peter Strandberg

  was:
1) Add a "toEnd" to the DateField:

CSV file:

w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet


The model:

@CsvRecord(separator = ",")
public class Org {

	@DataField(pos = 1)
	private String type;
	
	@DataField(pos = 2)
	private String name;

	@DataField(pos = 3, toEnd = true)
    private List<Integer> ids;

}

The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r


The model:

@CsvRecord(separator = ",")
public class Order {

	@DataField(pos = 1)
	private String type;

	@DataField(pos = 2)
	private String name;

	@DataField(pos = 3, endPos = 5)
    private List<Integer> lines;

	@DataField(pos = 6)
	private String action;

}

I have a prototype for the unmarshalling, but not for unmarshalling.

/Niels Peter Strandberg


> Add more flexibility to DataField
> ---------------------------------
>
>                 Key: CAMEL-4108
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4108
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-bindy
>            Reporter: Niels Peter Strandberg
>            Priority: Minor
>
> 1) Add a "toEnd" to the DateField:
> CSV file:
> w,RegionH,1234,4567,5565
> w,KIT,233,233
> d,Rigshospitalet
> The model:
> @CsvRecord(separator = ",")
> public class Org {
>    @DataField(pos = 1)
>    private String type;
> 	
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, toEnd = true)
>    private List<Integer> ids;
> }
> The "ids" list will the contain the result for pos 3 to the end of the line. 
> 2) Add a "endPos" to the DateField:
> CSV file:
> w,RegionH,1234,4567,5565,m
> w,KIT,233,233,4545,m
> d,Rigshospitalet,343434,3434,3434,r
> The model:
> @CsvRecord(separator = ",")
> public class Order {
> 	@DataField(pos = 1)
> 	private String type;
> 	@DataField(pos = 2)
> 	private String name;
> 	@DataField(pos = 3, endPos = 5)
>     private List<Integer> lines;
> 	@DataField(pos = 6)
> 	private String action;
> }
> I have a prototype for the unmarshalling, but not for unmarshalling.
> /Niels Peter Strandberg

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4108) Add more flexibility to DataField

Posted by "Niels Peter Strandberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niels Peter Strandberg updated CAMEL-4108:
------------------------------------------

    Description: 
1) Add a "toEnd" to the DateField:

CSV file:

w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet


The model:

{{
@CsvRecord(separator = ",")
public class Org \{

   @DataField(pos = 1)
   private String type;
	
   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, toEnd = true)
   private List<Integer> ids;

\}
}}

The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r


The model:

@CsvRecord(separator = ",")
public class Order {

	@DataField(pos = 1)
	private String type;

	@DataField(pos = 2)
	private String name;

	@DataField(pos = 3, endPos = 5)
    private List<Integer> lines;

	@DataField(pos = 6)
	private String action;

}

I have a prototype for the unmarshalling, but not for unmarshalling.

/Niels Peter Strandberg

  was:
1) Add a "toEnd" to the DateField:

CSV file:

w,RegionH,1234,4567,5565
w,KIT,233,233
d,Rigshospitalet


The model:

{quote}
@CsvRecord(separator = ",")
public class Org \{

   @DataField(pos = 1)
   private String type;
	
   @DataField(pos = 2)
   private String name;

   @DataField(pos = 3, toEnd = true)
   private List<Integer> ids;

\}
{quote}

The "ids" list will the contain the result for pos 3 to the end of the line. 



2) Add a "endPos" to the DateField:

CSV file:

w,RegionH,1234,4567,5565,m
w,KIT,233,233,4545,m
d,Rigshospitalet,343434,3434,3434,r


The model:

@CsvRecord(separator = ",")
public class Order {

	@DataField(pos = 1)
	private String type;

	@DataField(pos = 2)
	private String name;

	@DataField(pos = 3, endPos = 5)
    private List<Integer> lines;

	@DataField(pos = 6)
	private String action;

}

I have a prototype for the unmarshalling, but not for unmarshalling.

/Niels Peter Strandberg


> Add more flexibility to DataField
> ---------------------------------
>
>                 Key: CAMEL-4108
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4108
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-bindy
>            Reporter: Niels Peter Strandberg
>            Priority: Minor
>
> 1) Add a "toEnd" to the DateField:
> CSV file:
> w,RegionH,1234,4567,5565
> w,KIT,233,233
> d,Rigshospitalet
> The model:
> {{
> @CsvRecord(separator = ",")
> public class Org \{
>    @DataField(pos = 1)
>    private String type;
> 	
>    @DataField(pos = 2)
>    private String name;
>    @DataField(pos = 3, toEnd = true)
>    private List<Integer> ids;
> \}
> }}
> The "ids" list will the contain the result for pos 3 to the end of the line. 
> 2) Add a "endPos" to the DateField:
> CSV file:
> w,RegionH,1234,4567,5565,m
> w,KIT,233,233,4545,m
> d,Rigshospitalet,343434,3434,3434,r
> The model:
> @CsvRecord(separator = ",")
> public class Order {
> 	@DataField(pos = 1)
> 	private String type;
> 	@DataField(pos = 2)
> 	private String name;
> 	@DataField(pos = 3, endPos = 5)
>     private List<Integer> lines;
> 	@DataField(pos = 6)
> 	private String action;
> }
> I have a prototype for the unmarshalling, but not for unmarshalling.
> /Niels Peter Strandberg

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira