Thanks a lot - both of you. ________________________________
Fra: Yang ZHONG [mailto:[EMAIL PROTECTED] Sendt: fr 02-02-2007 21:16 Til: [email protected] Emne: Re: Enumeration EModelElement model = (EModelElement)type; System.out.print(model.getEAnnotation(ExtendedMetaData.ANNOTATION_URI ).getDetails().get("enumeration")); I see "X Y Z" On 2/2/07, Christian Landbo Frederiksen < [EMAIL PROTECTED]> wrote: > > How near is 'the near future' ? > > So does anybody have an EMF Annotations sample > > /Chr > > ________________________________ > > Fra: Frank Budinsky [mailto:[EMAIL PROTECTED] > Sendt: fr 02-02-2007 18:56 > Til: [email protected] > Emne: Re: Enumeration > > > > Unlike SDO 1, in SDO 2, there is no Enum DataType (it just maps to > String), so you can't call EEnum#getElitterals() either. > > Today, you can only access the litteral values by looking at the EMF > EAnnotations on the Type, but we plan to provide access to them through > Type.getInstanceProperties() (new SDO 2.1 feature) in the near future. > > Frank. > > "Yang ZHONG" <[EMAIL PROTECTED]> wrote on 02/02/2007 12:13:18 > PM: > > > No SDO API to access enumeration for the moment. > > FYI EEnum#getELiterals() is the EMF API. > > > > > > On 2/2/07, Christian Landbo Frederiksen < > > [EMAIL PROTECTED]> wrote: > > > > > > > > > Can anybody tell me where I can find the enumerated values (X, Y, Z) > > > when I have defined a dataobject containing this: > > > > > > <simpleType name="Test"> > > > <restriction base="string"> > > > <enumeration value="X"/> > > > <enumeration value="Y"/> > > > <enumeration value="Z"/> > > > </restriction> > > > </simpleType> > > > > > > If SDO does not offer it directly can I use the underlying EMF? > > > > > > /Chr > > > > > > > > > > > > -- > > > > Yang ZHONG > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Yang ZHONG
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
