Hi
It could look something like this:
public static int getManyCount(Property property) {
return ((EStructuralFeature) property).getUpperBound();
}
unbounded returns -1
/Chr
________________________________
Fra: kelvin goodson [mailto:[EMAIL PROTECTED]
Sendt: fr 04-05-2007 09:55
Til: [email protected]
Emne: Re: maxOccurs
Unfortunately not, at least not through the SDO API as it stands. I think
this is part of the discussion discussion in the spec group under the XSD
fidelity heading in http://www.xcalia.com/support/browse/SDO-197. However,
I'm pretty sure this could be dug out from the underlying EMF metadata
annotations, so it could be a candidate for thinking about adding as a
Tuscany SDOUtil method until the spec resolves the issue.
Kelvin.
On 03/05/07, Christian Landbo Frederiksen <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> If a property is 'many', is there a way to determine how many that is
> (i.e. the maxOccurs setting) ?
>
> /Chr
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]