49 *
50 * <p>See "Package Specification" in javax.xml.bind.package javadoc for
51 * additional common information.</p>
52 *
53 * The usage is subject to the following constraints:
54 * <ul>
55 * <li> At most one field or property in a class can be annotated
56 * with <tt>@XmlAnyAttribute</tt>. </li>
57 * <li> The type of the property or the field must <tt>java.util.Map</tt> </li>
58 * </ul>
59 *
60 * <p>
61 * While processing attributes to be unmarshalled into a value class,
62 * each attribute that is not statically associated with another
63 * JavaBean property, via {@link XmlAttribute}, is entered into the
64 * wildcard attribute map represented by
65 * {@link Map}<{@link QName},{@link Object}>. The attribute QName is the
66 * map's key. The key's value is the String value of the attribute.
67 *
68 * @author Kohsuke Kawaguchi, Sun Microsystems, Inc.
69 * @since JAXB2.0
70 */
71 @Retention(RUNTIME)
72 @Target({FIELD,METHOD})
73 public @interface XmlAnyAttribute {
74 }
|
49 *
50 * <p>See "Package Specification" in javax.xml.bind.package javadoc for
51 * additional common information.</p>
52 *
53 * The usage is subject to the following constraints:
54 * <ul>
55 * <li> At most one field or property in a class can be annotated
56 * with <tt>@XmlAnyAttribute</tt>. </li>
57 * <li> The type of the property or the field must <tt>java.util.Map</tt> </li>
58 * </ul>
59 *
60 * <p>
61 * While processing attributes to be unmarshalled into a value class,
62 * each attribute that is not statically associated with another
63 * JavaBean property, via {@link XmlAttribute}, is entered into the
64 * wildcard attribute map represented by
65 * {@link Map}<{@link QName},{@link Object}>. The attribute QName is the
66 * map's key. The key's value is the String value of the attribute.
67 *
68 * @author Kohsuke Kawaguchi, Sun Microsystems, Inc.
69 * @since 1.6, JAXB 2.0
70 */
71 @Retention(RUNTIME)
72 @Target({FIELD,METHOD})
73 public @interface XmlAnyAttribute {
74 }
|