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
    Author:
    Bela Ban
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String[] attrs  
    • Element Detail

      • attrs

        java.lang.String[] attrs
        Default:
        {}