-
@Retention(value=RUNTIME) @Target(value={FIELD,METHOD}) public @interface XmlAnyAttribute
Maps a JavaBean property to a map of wildcard attributes.
Usage
The @XmlAnyAttribute annotation can be used with the following program elements:
- JavaBean property
- non static, non transient field
See "Package Specification" in javax.xml.bind.package javadoc for additional common information.
The usage is subject to the following constraints:- At most one field or property in a class can be annotated with @XmlAnyAttribute.
- The type of the property or the field must java.util.Map
While processing attributes to be unmarshalled into a value class, each attribute that is not statically associated with another JavaBean property, via
XmlAttribute
, is entered into the wildcard attribute map represented byMap
<QName
,Object
>. The attribute QName is the map's key. The key's value is the String value of the attribute.- Since:
- JAXB2.0
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-javax/xml/bind/annotation/XmlAnyAttribute.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.