Annotation Type XmlElements


  • @Retention(RUNTIME)
    @Target({FIELD,METHOD})
    public @interface XmlElements

    A container for multiple @XmlElement annotations.

    Multiple annotations of the same type are not allowed on a program element. This annotation therefore serves as a container annotation for multiple @XmlElements as follows: {@snippet :

    Since:
    1.6, JAXB 2.0
    Author:
    • Kohsuke Kawaguchi, Sun Microsystems, Inc.
    • Sekhar Vajjhala, Sun Microsystems, Inc.
    See Also:
    XmlElement, XmlElementRef, XmlElementRefs, XmlJavaTypeAdapter
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      XmlElement[] value
      Collection of @XmlElement annotations