< prev index next >
src/java.xml.bind/share/classes/javax/xml/bind/annotation/XmlValue.java
Print this page
@@ -37,11 +37,11 @@
* </p>
*
* <p>
* <b> Usage: </b>
* <p>
- * The <tt>@XmlValue</tt> annotation can be used with the following program
+ * The {@code @XmlValue} annotation can be used with the following program
* elements:
* <ul>
* <li> a JavaBean property.</li>
* <li> non static, non transient field.</li>
* </ul>
@@ -50,13 +50,13 @@
* additional common information.</p>
*
* The usage is subject to the following usage constraints:
* <ul>
* <li>At most one field or property can be annotated with the
- * <tt>@XmlValue</tt> annotation. </li>
+ * {@code @XmlValue} annotation. </li>
*
- * <li><tt>@XmlValue</tt> can be used with the following
+ * <li>{@code @XmlValue} can be used with the following
* annotations: {@link XmlList}. However this is redundant since
* {@link XmlList} maps a type to a simple schema type that derives by
* list just as {@link XmlValue} would. </li>
*
* <li>If the type of the field or property is a collection type,
@@ -71,11 +71,11 @@
* If the annotated JavaBean property is the sole class member being
* mapped to XML Schema construct, then the class is mapped to a
* simple type.
*
* If there are additional JavaBean properties (other than the
- * JavaBean property annotated with <tt>@XmlValue</tt> annotation)
+ * JavaBean property annotated with {@code @XmlValue} annotation)
* that are mapped to XML attributes, then the class is mapped to a
* complex type with simpleContent.
* </p>
*
* <p> <b> Example 1: </b> Map a class to XML Schema simpleType</p>
< prev index next >