Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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

I would like to extract the integer value of this restriction :

<xs:element name="NombreExemplaires">
<xs:restriction base="xs:integer">
<xs:minInclusive value="1"/>

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 =
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: Wed Aug 12 21:51:42 GMT 2020

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

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

Back to the top