< prev index next >

src/java.xml.bind/share/classes/javax/xml/bind/annotation/adapters/XmlJavaTypeAdapter.java

Print this page

        

*** 48,81 **** /** * Use an adapter that implements {@link XmlAdapter} for custom marshaling. * * <p> <b> Usage: </b> </p> * ! * <p> The <tt>@XmlJavaTypeAdapter</tt> annotation can be used with the * following program elements: * <ul> * <li> a JavaBean property </li> * <li> field </li> * <li> parameter </li> * <li> package </li> * <li> from within {@link XmlJavaTypeAdapters} </li> * </ul> * ! * <p> When <tt>@XmlJavaTypeAdapter</tt> annotation is defined on a * class, it applies to all references to the class. ! * <p> When <tt>@XmlJavaTypeAdapter</tt> annotation is defined at the * package level it applies to all references from within the package ! * to <tt>@XmlJavaTypeAdapter.type()</tt>. ! * <p> When <tt>@XmlJavaTypeAdapter</tt> annotation is defined on the * field, property or parameter, then the annotation applies to the * field, property or the parameter only. ! * <p> A <tt>@XmlJavaTypeAdapter</tt> annotation on a field, property ! * or parameter overrides the <tt>@XmlJavaTypeAdapter</tt> annotation * associated with the class being referenced by the field, property * or parameter. ! * <p> A <tt>@XmlJavaTypeAdapter</tt> annotation on a class overrides ! * the <tt>@XmlJavaTypeAdapter</tt> annotation specified at the * package level for that class. * * <p>This annotation can be used with the following other annotations: * {@link XmlElement}, {@link XmlAttribute}, {@link XmlElementRef}, * {@link XmlElementRefs}, {@link XmlAnyElement}. This can also be --- 48,81 ---- /** * Use an adapter that implements {@link XmlAdapter} for custom marshaling. * * <p> <b> Usage: </b> </p> * ! * <p> The {@code @XmlJavaTypeAdapter} annotation can be used with the * following program elements: * <ul> * <li> a JavaBean property </li> * <li> field </li> * <li> parameter </li> * <li> package </li> * <li> from within {@link XmlJavaTypeAdapters} </li> * </ul> * ! * <p> When {@code @XmlJavaTypeAdapter} annotation is defined on a * class, it applies to all references to the class. ! * <p> When {@code @XmlJavaTypeAdapter} annotation is defined at the * package level it applies to all references from within the package ! * to {@code @XmlJavaTypeAdapter.type()}. ! * <p> When {@code @XmlJavaTypeAdapter} annotation is defined on the * field, property or parameter, then the annotation applies to the * field, property or the parameter only. ! * <p> A {@code @XmlJavaTypeAdapter} annotation on a field, property ! * or parameter overrides the {@code @XmlJavaTypeAdapter} annotation * associated with the class being referenced by the field, property * or parameter. ! * <p> A {@code @XmlJavaTypeAdapter} annotation on a class overrides ! * the {@code @XmlJavaTypeAdapter} annotation specified at the * package level for that class. * * <p>This annotation can be used with the following other annotations: * {@link XmlElement}, {@link XmlAttribute}, {@link XmlElementRef}, * {@link XmlElementRefs}, {@link XmlAnyElement}. This can also be
< prev index next >