so I've got XSDs (out of my control) from which I generate java sources using the maven jaxb2 plugin (version 0.13.0) where each complex type has the suffix "structure", e.g. a "Connection" element is of the complex type "ConnectionStructure". I'd really like to remove these from the code, so the resulting class is not called ConnectionStructure, but "Connection".
I have read here which details how to rename a single class.
Accordingly, my code is
<bindings schemaLocation="MyXsd.xsd">
<schemaBindings>
<package name="mypackage.generated.a" />
</schemaBindings>
<bindings node="//xsd:complexType[@name='*ConnectionStructure']">
<class name="Connection"/>
</bindings>
<bindings
but I'd like to not just remove the suffix from ConnectionStructure, but from every class that ends in structure.I haven't quite found how I could achieve this with wild cards or anything like that.
Any help would be much appreciated!