title: JAXB Fixed Attribute not set during marshalling
body: <p>JAXB seems not to be able to set a fixed attribute value by default.  Is this expected behavior, or something I'm doing wrong?</p>
  
  <p>I have an xsd like:</p>
  
  <pre><code>&lt;element name="AccountCategory" type="tns:Integer"&gt;&lt;/element&gt;
  &lt;xs:complexType name="Integer"&gt;
      &lt;xs:simpleContent&gt;
          &lt;xs:extension base="xs:int"&gt;
              &lt;xs:attribute name="e-dtype" fixed="int"/&gt;
          &lt;/xs:extension&gt;
      &lt;/xs:simpleContent&gt;
  &lt;/xs:complexType&gt;
  </code></pre>
  
  <p>Marshalling a java object created with new produces:</p>
  
  <pre><code>&lt;AccountCategory&gt;5&lt;/AccountCategory&gt;
  </code></pre>
  
  <p>Java:</p>
  
  <pre><code>com.sample.Integer val = new com.sample.Integer();
  val.setValue(5);
  parentObject.setAccountCategory(val);
  </code></pre>
  
  <p>I am able to manually set the attribute value and it works fine.  Also if I just reset it to its own value it also works.  Seems like the marshaller is not using the get method when generating the XML?</p>
  
  <pre><code>val.setEDtype(val.getEDtype());
  </code></pre>
  
  <p>Results in</p>
  
  <pre><code>&lt;AccountCategory e-dtype="int"&gt;5&lt;/AccountCategory&gt;
  </code></pre>
  
  <p>The generated .java below:</p>
  
  <pre><code>@XmlAccessorType(XmlAccessType.FIELD)
  @XmlType(name = "Integer", propOrder = {
      "value"
  })
  public class Integer {
  
  @XmlValue
  protected int value;
  @XmlAttribute(name = "e-dtype")
  @XmlSchemaType(name = "anySimpleType")
  protected String eDtype;
  
  /**
   * Gets the value of the value property.
   * 
   */
  public int getValue() {
      return value;
  }
  
  /**
   * Sets the value of the value property.
   * 
   */
  public void setValue(int value) {
      this.value = value;
  }
  
  /**
   * Gets the value of the eDtype property.
   * 
   * @return
   *     possible object is
   *     {@link String }
   *     
   */
  public String getEDtype() {
      if (eDtype == null) {
          return "int";
      } else {
          return eDtype;
      }
  }
  
  /**
   * Sets the value of the eDtype property.
   * 
   * @param value
   *     allowed object is
   *     {@link String }
   *     
   */
  public void setEDtype(String value) {
      this.eDtype = value;
  }
  </code></pre>