I have a 3rd party interface that supplies xsd files that matches their API. Some of their mappings are not quite Java, the usual boolean as 0 & 1 :-(
I\'d like
It's a super late response, I realize, but even mvv's response left me struggling to totally grasp what I was doing and where in the structure the new element fit, so I wanted to add some further detail for anyone coming across this later.
Per mvv, the easiest answer is to change to using the xjc:javaType. See jaxb customization for the detailed documentation on using xjc:javaType.
You'll also need to change your custom adapter (BooleanAdapter) to implement the XmlAdapter interface.
Ultimately, your binding would instead look like this: