Hello--
Newbie here. :-)
I'm writing a Json visitor for a project and I'd like to stream
MAFileModel on it but I'm at a loss about how to proceed.
For most simple descriptions, streaming the value is just a matter of
rendering the value according to the description using the normal
visitor pattern. However, MAFileModel is a full-blown class and
doesn't have a corresponding description to guide the process.
What would be the most interesting path here: add the required
descriptions to the classes or just go ahead and stream the
attributes?
It seems to me that the second options make the Json visitor to
tightly coupled to the MAFileModel class. On the other hand, adding
the descriptions may not be that interesting because it would mean
changing a Magritte base class.
Any suggestions?
Thanks. :-)
--
Ronaldo Ferraz
http://log.reflectivesurface.com