title: How to add a generic parameter to a class generated by JAXB?
body: <p>I'm using maven-jaxb2-plugin and jaxb2-basics plugin to generate java classes from a XSD schema.</p>
  
  <p>I need to make some of those generated classes implement a custom interface:</p>
  
  <pre><code>public interface MyInterface&lt;O extends MyObject&gt; {
  
      O getO();
      O setO(O myObject);
  
  }
  </code></pre>
  
  <p>So I'm using the inheritance plugin, configured in a bindings file:</p>
  
  <p></p>
  
  <pre><code>&lt;jxb:bindings node="//xs:complexType[@name='MyXmlType']"&gt;
      &lt;inheritance:implements&gt;com.example.MyInterface&lt;/inheritance:implements&gt;
  &lt;/jxb:bindings&gt; 
  </code></pre>
  
  <p></p>
  
  <p>How can I specify the type of the generic parameter in the implementing class (MyXmlType)? Is there an already existing plugin?</p>