@Retention(CLASS) @Target({FIELD})
public @interface XmlAttribute
Promotes a
@Mapped field to an XML attribute on the parent element rather
than a nested child element. Only valid on scalar fields (String, primitive
wrappers, enums, Property of one of those).Methods
public abstract String value() default "" | The attribute name. |
Method details
value
public abstract String value() default ""The attribute name. Defaults to the field name when blank.