|Re: Comparing EDataType [message #508400 is a reply to message #508315]
||Mon, 18 January 2010 16:08
| Ed Merks
Registered: July 2009
Using structurealFeature.getEType() == EcorePackage.Literals.ESTRING is
the fast if you know the specific EDataType.
André Ribeiro wrote:
> 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?
Professional Support: https://www.macromodeling.com/
Powered by FUDForum
. Page generated in 0.01846 seconds