NordeaOSS / copybook4java

CopyBook serializer and deserializer for Java
MIT License
24 stars 14 forks source link

Support for SIGN LEADING SEPARATE? #11

Open christor opened 8 years ago

christor commented 8 years ago

I have an input description that contains lines like the following:

05 HOR-ACCURACY-CHARGE           PIC S9(08)V99  SIGN LEADING SEPARATE.

I haven't used the format before, but have done some reading and I think I understand what this means...is this currently supported by this library? If necessary, and with some direction, I may be able to help add this if not...

Thanks

tlbdk commented 8 years ago

The automatic converter does currently not support this annotation, but you should be able to convert the field correctly by adding manually the following annotation to the field, if I understand the description correctly: @CopyBookFieldFormat(tCopyBookFieldSigningType.PREFIX)

You are more than welcome to add support for this, the cobol "parser" is a bunch of fairly simplistic regular expressions and javascript, both the html converter and the maven plugin use the same code: https://github.com/NordeaOSS/copybook4java/blob/master/classconverter.html

I have change work so I don't have that much time to work on this project my self anymore, but I'm more than happy to review a pull request.

Regards Troels