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
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: Sun Dec 21 01:08:43 GMT 2014

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

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