Annotation Type XmlAttribute


@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).
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The attribute name.
  • Element Details

    • value

      String value
      The attribute name. Defaults to the field name when blank.
      Default:
      ""