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) ?