D
Daniel Puryear
As a study exercise I've developed a GUI builder sort'a like VisualCafe
where I persist (Save/SaveAs..) the design out using the XMLEncoder and load
it back with the XMLDecoder. Works fine for the time being. Have a crude
home grown SourceCodeGenerator that I can pass the root node of the object
tree and it spews out source code. But the thought occurs to me that I
should be able to leverage the default member filtering powers of the
XMLEncoder by using a hook into the XMLDecoder so as to produce only source
code needed to reproduce the object tree, skipping all the members that
merely have defaults.
Has anyone had experience generating source code from an object tree in
general or from the persisted XML produced by the XMLEncoder in particular
that can share some pointers and/or portions of their code?
where I persist (Save/SaveAs..) the design out using the XMLEncoder and load
it back with the XMLDecoder. Works fine for the time being. Have a crude
home grown SourceCodeGenerator that I can pass the root node of the object
tree and it spews out source code. But the thought occurs to me that I
should be able to leverage the default member filtering powers of the
XMLEncoder by using a hook into the XMLDecoder so as to produce only source
code needed to reproduce the object tree, skipping all the members that
merely have defaults.
Has anyone had experience generating source code from an object tree in
general or from the persisted XML produced by the XMLEncoder in particular
that can share some pointers and/or portions of their code?