I have limited the range of the value of an attribute in my schema as following:

  <xs:complexType name="pageSplitType" >

       <xs:attribute name="size-per-page" >

         <xs:simpleType>

           <xs:restriction base="xs:positiveInteger">

             <xs:pattern value="\d{1,2}"/>

           </xs:restriction>

         </xs:simpleType>

       </xs:attribute>

</xs:complexType>

 

I hope that the type of the generated attribute should be int, but it is BigInteger. The following is the signature of the generated getter:

    /**

     * Gets the "size-per-page" attribute

     */

    java.math.BigInteger getSizePerPage();

 

How to define the schema so that the type of the attribute is int?

 

Thanks for your help very much.

 

The version is XmlBean 2.0.0.beta1

Reply via email to