title: Jaxb: attribute fixed value in annotated class
body: <p>I generate XML schema (XSD) from Java classes with JAXB. I wonder how to specify the value of a static attribute by using annotations.</p>
  
  <p>For example I define an attribute like this</p>
  
  <pre><code>@XmlAttribute(name="tooltip")
  private static final String TOOLTIP = "A string";
  </code></pre>
  
  <p>And I want to get in my XSD</p>
  
  <pre><code>&lt;attribute name="tooltip" type="string" fixed="A string"&gt;
  </code></pre>
  
  <p>So, how can I force the generation of static attributes in XSD with JAXB?</p>
  
  <p>Thanks !</p>