< prev index next >
src/java.xml.bind/share/classes/javax/xml/bind/annotation/adapters/XmlAdapter.java
Print this page
@@ -30,11 +30,11 @@
*
* <p> <b> Usage: </b> </p>
*
* <p>
* Some Java types do not map naturally to a XML representation, for
- * example <tt>HashMap</tt> or other non JavaBean classes. Conversely,
+ * example {@code HashMap} or other non JavaBean classes. Conversely,
* a XML repsentation may map to a Java type but an application may
* choose to accesss the XML representation using another Java
* type. For example, the schema to Java binding rules bind
* xs:DateTime by default to XmlGregorianCalendar. But an application
* may desire to bind xs:DateTime to a custom type,
@@ -66,14 +66,14 @@
* <li> Write an adapter that implements this abstract class. </li>
* <li> Install the adapter using the annotation {@link
* XmlJavaTypeAdapter} </li>
* </ul>
*
- * <p><b>Example:</b> Customized mapping of <tt>HashMap</tt></p>
+ * <p><b>Example:</b> Customized mapping of {@code HashMap}</p>
* <p> The following example illustrates the use of
- * <tt>@XmlAdapter</tt> and <tt>@XmlJavaTypeAdapter</tt> to
- * customize the mapping of a <tt>HashMap</tt>.
+ * {@code @XmlAdapter} and {@code @XmlJavaTypeAdapter} to
+ * customize the mapping of a {@code HashMap}.
*
* <p> <b> Step 1: </b> Determine the desired XML representation for HashMap.
*
* <pre>{@code
* <hashmap>
@@ -152,11 +152,11 @@
* }</pre>
*
* @param <BoundType>
* The type that JAXB doesn't know how to handle. An adapter is written
* to allow this type to be used as an in-memory representation through
- * the <tt>ValueType</tt>.
+ * the {@code ValueType}.
* @param <ValueType>
* The type that JAXB knows how to handle out of the box.
*
* @author <ul><li>Sekhar Vajjhala, Sun Microsystems Inc.</li> <li> Kohsuke Kawaguchi, Sun Microsystems Inc.</li></ul>
* @see XmlJavaTypeAdapter
< prev index next >