users@jaxb.java.net

Re: Marshalling a content sub-tree

From: François Banel <fbanel_at_LAPOSTE.NET>
Date: Mon, 31 Mar 2003 02:55:07 -0700

Hello,

First of all, thank you for your answers.

I understand of course that writing
f1.setB( f2.getA() );
is very simple.

However, to my mind, we could have more flexibility and the
ElementWrapper would not be necessary if we had a means to
retrieve the real Element.

For example, there could be 2 methods by subelement :
 Foo {
   A getAElement();
   T getA();
   B getBElement();
   T getB();
 }
Then f1.setB( f2.getA() ); stays the same and we can have access to real
elements.

or even the following classes :
 Foo {
   A getA();
   B getB();
   setA(T);
   setB(T);
 }
 A {
   T getType();
 }
 B {
   T getType();
 }
Then f1.setB( f2.getA() );
becomes f1.setB( f2.getA().getType() );


Will ElementWrapper become the standard way to obtain a real Element ?
If so, will it be part of the standard interface (not implementation-specific) ?