Annotation Type XmlAttribute


@Retention(RUNTIME) @Target(TYPE) public @interface XmlAttribute
Annotation to add attributes to the schema created by XMLSchemaGenerator. Example:
 @XmlAttribute(attrs={"auth_value", "demo_token})
 
This results in the following schema fragment:
     <xs:attribute name="auth_value" type="xs:string"/>
       <xs:attribute name="demo_token" type="xs:string"/>
 
Since:
3.5
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • attrs

      String[] attrs
      Default:
      {}