You can use the Annotate plugin to add arbitrary Java annotations to your schema-based classes. With this plugin you can control the syntax, for example:
<xs:element name="HomeAddress" type="xs:string">
<xs:annotation>
<xs:appinfo>
<ann:annotate xmlns:ann="http://annox.dev.java.net/com.acme.foo">
<my:Label value="Home address"/>
</ann:annotate>
</xs:appinfo>
</xs:annotation>
</xs:element>
And you get something like:
@Label("Home address")
public String getHomeAddress(...) {}
source
share