Package jakarta.xml.bind.annotation
Annotation Interface XmlMixed
Annotate a JavaBean multi-valued property to support mixed content.
The usage is subject to the following constraints:
- can be used with @XmlElementRef, @XmlElementRefs or @XmlAnyElement
The following can be inserted into @XmlMixed annotated multi-valued property
- XML text information items are added as values of java.lang.String.
- Children element information items are added as instances of
JAXBElementor instances with a class that is annotated with @XmlRootElement. - Unknown content that is not be bound to a Jakarta XML Binding mapped class is inserted
as
Element. (Assumes property annotated with @XmlAnyElement)
See "Package Specification" in jakarta.xml.bind.package javadoc for additional common information.
- Since:
- 1.6, JAXB 2.0
- Author:
- Kohsuke Kawaguchi