You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 5, 2018. It is now read-only.
When we have some structure like this:
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <choice maxOccurs="unbounded">
* <group ref="{http://www.w3.org/1999/XSL/Format}marker_List"/>
* <group ref="{http://www.w3.org/1999/XSL/Format}block_List"/>
* <group ref="{http://www.w3.org/1999/XSL/Format}neutral_List"/>
* <group ref="{http://www.w3.org/1999/XSL/Format}float_List"/>
* <group ref="{http://www.w3.org/1999/XSL/Format}footnote_List"/>
* </choice>
* <attGroup ref="{http://www.w3.org/1999/XSL/Format}inheritable_properties_List"/>
* <attribute name="flow-name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
JAXB generates this structure:
@XmlElements({
@XmlElement(name = "block", type = Block.class),
@XmlElement(name = "multi-properties", type = MultiProperties.class),
@XmlElement(name = "wrapper", type = Wrapper.class),
@XmlElement(name = "retrieve-marker", type = RetrieveMarker.class),
@XmlElement(name = "footnote", type = Footnote.class),
@XmlElement(name = "marker", type = Marker.class),
@XmlElement(name = "float", type = Float.class),
@XmlElement(name = "multi-switch", type = MultiSwitch.class),
@XmlElement(name = "list-block", type = ListBlock.class),
@XmlElement(name = "table", type = Table.class),
@XmlElement(name = "block-container", type = BlockContainer.class),
@XmlElement(name = "table-and-caption", type = TableAndCaption.class)
})
protected List<Object> markerOrBlockOrBlockContainer;
I would be very very useful to have one withNew method for each choice, in
order to add new elements to markerOrBlockOrBlockContainer and hide this
List<Object> type.
Best regards,
Ricardo
Original issue reported on code.google.com by [email protected] on 11 Jun 2011 at 4:48
Original issue reported on code.google.com by
[email protected]
on 11 Jun 2011 at 4:48Attachments:
The text was updated successfully, but these errors were encountered: