Annotation Type XmlJavaTypeAdapter
-
@Retention(RUNTIME) @Target({PACKAGE,FIELD,METHOD,TYPE,PARAMETER}) public @interface XmlJavaTypeAdapterUse an adapter that implementsXmlAdapterfor custom marshaling.Usage:
The
@XmlJavaTypeAdapterannotation can be used with the following program elements:- a JavaBean property
- field
- parameter
- package
- from within
XmlJavaTypeAdapters
When
@XmlJavaTypeAdapterannotation is defined on a class, it applies to all references to the class.When
@XmlJavaTypeAdapterannotation is defined at the package level it applies to all references from within the package to@XmlJavaTypeAdapter.type().When
@XmlJavaTypeAdapterannotation is defined on the field, property or parameter, then the annotation applies to the field, property or the parameter only.A
@XmlJavaTypeAdapterannotation on a field, property or parameter overrides the@XmlJavaTypeAdapterannotation associated with the class being referenced by the field, property or parameter.A
@XmlJavaTypeAdapterannotation on a class overrides the@XmlJavaTypeAdapterannotation specified at the package level for that class.This annotation can be used with the following other annotations:
XmlElement,XmlAttribute,XmlElementRef,XmlElementRefs,XmlAnyElement. This can also be used at the package level with the following annotations:XmlAccessorType,XmlSchema,XmlSchemaType,XmlSchemaTypes.Example: See example in
XmlAdapter- See Also:
XmlAdapter- Author:
- Sekhar Vajjhala, Sun Microsystems Inc.
- Kohsuke Kawaguchi, Sun Microsystems Inc.
- Since:
- 1.6, JAXB 2.0
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<? extends XmlAdapter>valuePoints to the class that converts a value type to a bound type or vice versa.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.ClasstypeIf this annotation is used at the package level, then value of the type() must be specified.
-
-
-
Element Detail
-
value
java.lang.Class<? extends XmlAdapter> value
Points to the class that converts a value type to a bound type or vice versa. SeeXmlAdapterfor more details.
-
-