org.glassfish.jaxb.runtime.api.CompositeStructure Maven / Gradle / Ivy
/*
* Copyright (c) 1997, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package org.glassfish.jaxb.runtime.api;
/**
* 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 {@link JAXBRIContext}, so it can be
* used without passing anything to {@link JAXBRIContext#newInstance}.
* This object can be only used for marshalling, not for unmarshalling.
*
* @author Kohsuke Kawaguchi
*/
public class CompositeStructure {
public Bridge[] bridges;
public Object[] values;
}