Consider an EMF EObject instance:
EObject eObject = ...
Note that I cannot assume more about eObject.
I want to add a boolean readyToBeProcessed tag/annotation/property to this and nothing but this eObject. This means that none of the other objects managed by the EMF framework which are of the same .eClass() should be affected in any way.
Is this possible at all?
The examples I've seen so far either:
- created a new
EAnnotationand registered the annotation with theeObject'seClass() - created a new
EAttributeand registered the annotation with theeObject'seClass()
These approaches, however, modify the eClass() which in my case is unacceptable.
One option would be to (ab)use adapters, as follows.