|
Re: Comparing EDataType [message #508400 is a reply to message #508315] |
Mon, 18 January 2010 16:08 |
Ed Merks Messages: 33137 Registered: July 2009 |
Senior Member |
|
|
André,
Using structurealFeature.getEType() == EcorePackage.Literals.ESTRING is
the fast if you know the specific EDataType.
André Ribeiro wrote:
> Hi,
>
> What should the fastest (& most correct) way to know if a given
> EStructuralFeature is of type EString (or any other EDataType)?
>
> i'm currently using the following:
> structuralFeature.getEType().getInstanceClass().equals(Strin g.class)
> but i suspect this isn't the most appropriate way to do it, is it?
>
> thanks,
> André
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03099 seconds