Class CompositeStructure

java.lang.Object
org.glassfish.jaxb.runtime.api.CompositeStructure

public class CompositeStructure extends Object
A JAXB Bean that works like a DOM.

This bean is bound to XML as a sequence of elements, where each element[i] is from bridges[i] (which defines the tag name and the expected type) and values[i] (which defines the actual value.)

This object allows you to treat multiple unrelated JAXB beans as a single tree. This in turn allows you to marshal this tree in one marshal method invocation, which is faster than multiple invocations of the marshal method.

The binding of this class is always known to JAXBRIContext, so it can be used without passing anything to JAXBRIContext.newInstance(java.lang.Class[], java.util.Collection<org.glassfish.jaxb.runtime.api.TypeReference>, java.util.Map<java.lang.Class, java.lang.Class>, java.lang.String, boolean, org.glassfish.jaxb.runtime.v2.model.annotation.RuntimeAnnotationReader). This object can be only used for marshalling, not for unmarshalling.

Author:
Kohsuke Kawaguchi
  • Field Details

    • bridges

      public Bridge[] bridges
    • values

      public Object[] values
  • Constructor Details

    • CompositeStructure

      public CompositeStructure()