I have one jaxb-created Class, that is (logically) not annotated with @XMLRootElement
, because it's a child-node. In one special case, I would like to (un)marshall this single node by using an JAXBElement
-Wrapper.
With <jxb:globalBindings generateElementProperty="true" />
one can force jaxb to create ObjectFactory-methods that return JAXBElement
's.
I would like jaxb not to create all methods that way, but to create that on additional method.
PS: I use ant/xjc to create that classes. That binding is from a binding-file used by xjc.