Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » getValue getEffectiveValue
getValue getEffectiveValue [message #594896] Mon, 25 April 2005 10:23
alexia is currently offline alexiaFriend
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 !
Previous Topic:How to extract the text in adocumentation tag ?
Next Topic:getValue getEffectiveValue
Goto Forum:
  


Current Time: Thu Apr 25 21:12:54 GMT 2024

Powered by FUDForum. Page generated in 0.02760 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top