Hello XJC-Users,
is there a way to get to annotations of an generated class?
Assume ich have a ClassOutline classOutline.
Is there a method, like: classOutline.target.getAnnotations();
The reason, I like to get these information is, that I like to access to XmlType propOrder-Annotation.
For Example, JAXB generates
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MyClassType", propOrder = {
"firstField",
"secondField",
"thirdField",
"anOtherField"
})
public class MyClass {}
Is it possible to access the annotation of the created prop-order annotation, to get the order of the created fields? To know, that the secondField is really the second field and anOtherField is the fourth field? Or is it possible to find out the property/field order?
regards Flori