scd

JAXB generated classes of certain types implementing a custom interface

南笙酒味 提交于 2019-12-03 08:42:34
I am working on an application that uses XJC to generate Java POJOs from XSDs. There are dozens of schemas, and that number will grow. The application also needs to be able to handle different versions of the same schema, which means that I will have multiple schemas defining common types. I am trying to customize the bindings so that certain core types implement a common interface. The Inheritance plugin of JAXB2 Basics seems to do what I need, but I can't seem to nail the right syntax. Here is the relevant part of my schema: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http:/