Eric,

Enumerator instances are expected to implement this interface, i.e., EEnumLiteral.getInstance returns such a value. You can't remove it. We "hide" this from the public API in with this pattern. What exactly is the API tool's complaint?


On 23/04/2013 9:12 PM, Eric Moffatt wrote:

We've been getting our API ready and Mike Rennie picked up on the implementation of enums as having an apparently odd pattern;

The generated code 'implements Internal<x>' where <x> is the Feature name and 'Internal<x>' is a package private interface that extends org.eclipse.emf.common.util.Enumerator.

Could someone explain why the pattern is there and what the possible consequences of removing it are (evidently it causes the API tooling to complain, not sure why) ?

Thanks,
Eric


_______________________________________________
emf-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/emf-dev

_______________________________________________
emf-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/emf-dev

Reply via email to