afpdev / alpheusafpparser

Library & parser for IBM Advanced Function Presentation (AFP) document/print stream format
GNU General Public License v3.0
16 stars 11 forks source link

@AFPField annotation missing in Triplets and Repeating Groups #14

Open michaelknigge opened 8 years ago

michaelknigge commented 8 years ago

Is there any reason why you've not specified the (brilliant!) @AFPField annotation the the fields of triplets and repeating groups?

This annotation is very useful when parsing the structured fields and one needs generic access (using reflection) to the fields - but because most structured fields contains triplets and/or repeating groups, this annotation would be great on them, too.

Bye, Michael

afpdev commented 8 years ago

Right now the @AFPField annotation is thought as experimental. It isn't applied to all object types. The idea for it came relatively late in the project when I worked on a (non-WYSIWYG)AFP-Editor and contemplated on a Validator that enables developers to validate the correctness of a (newly created/changed) Structured Field(SF).

However, AFP is a quite a beast and at one point I realized that I will not get through with that approach since the validity of the value of a field may depend on the value of other fields, sometimes residing in other SFs.

But, yes, if it is of use we can apply it to Triplets, RepeatingGroups, etc. too. I let this issue open until it is done.