107 * public java.math.BigDecimal price;
108 *
109 * @XmlAttribute
110 * public String currency;
111 * }
112 *
113 * <!-- Example 2: XML Schema fragment -->
114 * <xs:complexType name="InternationalPrice">
115 * <xs:simpleContent>
116 * <xs:extension base="xs:decimal">
117 * <xs:attribute name="currency" type="xs:string"/>
118 * </xs:extension>
119 * </xs:simpleContent>
120 * </xs:complexType>
121 *
122 * </pre>
123 * </p>
124 *
125 * @author Sekhar Vajjhala, Sun Microsystems, Inc.
126 * @see XmlType
127 * @since JAXB2.0
128 */
129
130 @Retention(RUNTIME) @Target({FIELD, METHOD})
131 public @interface XmlValue {}
|
107 * public java.math.BigDecimal price;
108 *
109 * @XmlAttribute
110 * public String currency;
111 * }
112 *
113 * <!-- Example 2: XML Schema fragment -->
114 * <xs:complexType name="InternationalPrice">
115 * <xs:simpleContent>
116 * <xs:extension base="xs:decimal">
117 * <xs:attribute name="currency" type="xs:string"/>
118 * </xs:extension>
119 * </xs:simpleContent>
120 * </xs:complexType>
121 *
122 * </pre>
123 * </p>
124 *
125 * @author Sekhar Vajjhala, Sun Microsystems, Inc.
126 * @see XmlType
127 * @since 1.6, JAXB 2.0
128 */
129
130 @Retention(RUNTIME) @Target({FIELD, METHOD})
131 public @interface XmlValue {}
|