users@jaxb.java.net

XJC: get the Annotation-Information of a field

From: Florian Bachmann <f.bachmann_at_micromata.de>
Date: Fri, 27 Nov 2009 08:25:18 +0100

Dear XJC-Users,
how I can find out, how an field is annotated?

Suppose I have a class with two fields:
SupposedClass {
@XmlElement(name = "AnElement")
protected AnElement anElement;
@XmlAttribute(name = "attribute")
protected AnAttribute attribute;
}

How can I find out, if an field is an XmlElement or an XmlAttribute and which name it uses?

regards Flori