How to custom simpleType by using JaxB Like Restriction

33 views Asked by At

i tried some Annotations But are not worked for me I thinks all of them Deprecated?

  • @digits
  • @Pattern(....)
<xs:simpleType name="TypeNote">
    <xs:restriction base="xs:decimal">
        <xs:minInclusive value="10"></xs:minInclusive>
        <xs:maxInclusive value="20"></xs:maxInclusive>
        <xs:totalDigits value="4"></xs:totalDigits>
        <xs:fractionDigits value="2"></xs:fractionDigits>
    </xs:restriction>
</xs:simpleType>
0

There are 0 answers