On Tue, Mar 10, 2009 at 3:44 PM, Raymond Feng <[email protected]> wrote:
> At this moment, the read/write delegation is based on two keys: the XML
> QName for the read and the Java type for the write. Maybe we could unify the
> two using the QName as follows:
>
> 1) Add an xmlName (QName) atttribute to the Base model (or define another
> interface such as XMLBase). The namespace of the xmlName naturally
> represents the version of the model.
>
> 2) Adjust the model write code to understand the XML name.
>
> Thanks,
> Raymond

Actually that sounds neater Raymond. I've been looking at this a
little more and of course my suggestion of having the spec version in
the composite would have to have been extended to all model elements
to make the writers work (as I now discover;-) so that means moving it
into a base class. Your suggesting of just storing the QName of the
element has that feeling of being more well rounded and consistent.

Simon

Reply via email to