You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Christian Landbo Frederiksen <CL...@Ementor.dk> on 2007/05/03 16:36:54 UTC

maxOccurs

Hi
 
If a property is 'many', is there a way to determine how many that is
(i.e. the maxOccurs setting) ?
 
/Chr

SV: maxOccurs

Posted by Christian Landbo Frederiksen <CL...@Ementor.dk>.
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:kelvingoodson@gmail.com]
Sendt: fr 04-05-2007 09:55
Til: tuscany-user@ws.apache.org
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 <CL...@ementor.dk> 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: tuscany-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org


Re: maxOccurs

Posted by kelvin goodson <ke...@gmail.com>.
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 <CL...@ementor.dk> wrote:
>
> Hi
>
> If a property is 'many', is there a way to determine how many that is
> (i.e. the maxOccurs setting) ?
>
> /Chr
>