Java JAXB从FOP模式生成TableCell类-无法添加块

Java JAXB从FOP模式生成TableCell类-无法添加块,java,xml,jaxb,apache-fop,Java,Xml,Jaxb,Apache Fop,我使用XJC将非官方的FOP模式转换为Java对象 在编写遵循模式的XML文档时,我可以在元素中添加元素;但我看不到任何方法可以使用生成的TableCell类以编程方式向TableCell添加块。我错过了实现这一点的方法吗 检查markerOrBlockOrBlockContainer属性 @XmlElements({ @XmlElement(name = "block-container", required = true, type = BlockContainer.class),

我使用XJC将非官方的FOP模式转换为Java对象

在编写遵循模式的XML文档时,我可以在元素中添加元素;但我看不到任何方法可以使用生成的TableCell类以编程方式向TableCell添加块。我错过了实现这一点的方法吗

检查markerOrBlockOrBlockContainer属性

@XmlElements({
    @XmlElement(name = "block-container", required = true, type = BlockContainer.class),
    @XmlElement(name = "retrieve-marker", required = true, type = RetrieveMarker.class),
    @XmlElement(name = "list-block", required = true, type = ListBlock.class),
    @XmlElement(name = "table", required = true, type = Table.class),
    @XmlElement(name = "float", required = true, type = Float.class),
    @XmlElement(name = "multi-properties", required = true, type = MultiProperties.class),
    @XmlElement(name = "table-and-caption", required = true, type = TableAndCaption.class),
    @XmlElement(name = "footnote", required = true, type = Footnote.class),
    @XmlElement(name = "marker", required = true, type = Marker.class),
    @XmlElement(name = "multi-switch", required = true, type = MultiSwitch.class),
    @XmlElement(name = "block", required = true, type = Block.class),
    @XmlElement(name = "wrapper", required = true, type = Wrapper.class)
})
protected List<Object> markerOrBlockOrBlockContainer;
由于可重复选择构造,您可以获得此异构属性:

  <choice maxOccurs = "unbounded">
    <group ref = "fo:marker_List"/>
    <group ref = "fo:block_List"/>
    <group ref = "fo:neutral_List"/>
    <group ref = "fo:float_List"/>
    <group ref = "fo:footnote_List"/>
  </choice>
  <choice maxOccurs = "unbounded">
    <group ref = "fo:marker_List"/>
    <group ref = "fo:block_List"/>
    <group ref = "fo:neutral_List"/>
    <group ref = "fo:float_List"/>
    <group ref = "fo:footnote_List"/>
  </choice>