Jaxb Simplify Plugin
Posted
by
wrm
on Stack Overflow
See other posts from Stack Overflow
or by wrm
Published on 2012-12-06T11:01:38Z
Indexed on
2012/12/06
11:03 UTC
Read the original article
Hit count: 269
i try to use the simplify plugin to simplify the generated code. I have a defined type:
<xsd:complexType name="typeWithReferencesProperty">
<xsd:choice maxOccurs="unbounded">
<xsd:annotation>
<xsd:appinfo>
<simplify:as-element-property/>
</xsd:appinfo>
</xsd:annotation>
<xsd:element name="a" type="AttributeValueIntegerType"/>
<xsd:element name="b" type="AttributeValueIntegerType"/>
</xsd:choice>
</xsd:complexType>
but it does not work, as it results in the following error:
compiler was unable to honor this as-element-property customization. It is attached to a wrong place, or its inconsistent with other bindings.
i used exactly the configuration, i also have other jaxb plugins which work, so i am not quite sure, if the plugin is broken or something? has anybody managed to get this running?
© Stack Overflow or respective owner