java-tools / fixedformat4j

Automatically exported from code.google.com/p/fixedformat4j
0 stars 0 forks source link

Repeatable Fields #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have a flat file feed that contains a configuration of a product. It is 
possible for the user to add 0 or more options to this configuration. The way 
this is represented in our flat file is to have a code-description pair 
repeated 10 times. As far as I can tell, the only way to accomplish this with 
the current version is to create 10 individual fields (option1, option2, 
etc...) and make each of them a nested record. What would be great is if there 
was an annotation that would allow for a repeatable field or nested record and 
it would return an array of whatever the field was.

Original issue reported on code.google.com by adamcrane on 8 Feb 2011 at 7:03

GoogleCodeExporter commented 9 years ago
I have the same need where a flat file contains, from a certain offset to the 
end of the line, an undefined number of the same type where each one has the 
same format (defined by a @FixedFormatDecimal for example) and each field is 
separated by a space " ".

Original comment by jeanphil...@gmail.com on 8 Aug 2011 at 4:01