title: Does JAXB support xsd:restriction?
body: <pre><code>&lt;xs:element name="age"&gt;
    &lt;xs:simpleType&gt;
      &lt;xs:restriction base="xs:integer"&gt;
        &lt;xs:minInclusive value="0"/&gt;
        &lt;xs:maxInclusive value="120"/&gt;
      &lt;/xs:restriction&gt;
    &lt;/xs:simpleType&gt;
  &lt;/xs:element&gt;
  </code></pre>
  
  <p>So I want it to get converted to Java code like this:</p>
  
  <pre><code>public void setAge(int age){
      if(age &lt; 0 || age &gt; 120){
           //throw some exception
      }
       //setting the age as it is a valid value
  }
  </code></pre>
  
  <p>Is it possible in JAXB?</p>
  
  <p>Had seen some WebService Client stub generator doing this maybe axis2 webservice but not sure.</p>