getValue getEffectiveValue [message #594896] |
Mon, 25 April 2005 10:23 |
alexia Messages: 3 Registered: July 2009 |
Junior Member |
|
|
Hello,
I would like to extract the integer value of this restriction :
<xs:element name="NombreExemplaires">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
I don't know what methods used.
If I used getValue(), that returns a BigInteger and I don't know how to
cast it in integer.
XSDMinInclusiveFacet aMininclusive =
aSimpleType.getMinInclusiveFacet();
BigInteger value = (BigInteger) aMininclusive.getValue();
int minValue = value.intValue(); // that don't work!
If I used getEffectiveValue(), that returns a Elist.
May be they are another way to do that?
Thanks for your help !
|
|
|
Powered by
FUDForum. Page generated in 0.02760 seconds