in one of my application I have an object that
I has a set of fields that really depends on the type of the entry.
An article will have different fields than a journal....
I see, meta described bib-entries ;-)
Now how could I use magritte to describe such object.
Should I have a dictionary that returns MAdefinition at the object
level (the table could be shared between all the instances of the
Why not create subclasses for each type? Each of them would have its
own set of descriptions, sharing the ones from the abstract superclass.
Another possibility is to use the state pattern and to override
#description on the instance side of your object and delegate it to
your state objects.