Hi,
I have a question
regarding the convertUponSet() method of GeneralizedFieldHander
class.
I have a xml file
like this:
<ROOT>
<RECORD>...</RECORD>
<RECORD>...</RECORD>
...
</ROOT>
I'm unmarshalling
this xml file to java object with the following mapping
file:
<mapping>
<class
name="mypackage.ROOT">
<field name="RECORD" type="mypackage.RECORD" collection="array"
handler="RecordHandler"/>
</class>
</mapping>
The RecordHandler
extends GeneralizedFieldHandler and its convertUponSet() method looks like
this:
public Object
convertUponSet(Object object)
{ System.out.println(object + "retrived from xml file");
{ System.out.println(object + "retrived from xml file");
return null;
}
}
Here is my
question: Is it correct that no RECORD will be kept in
memory after returning null in convertUponSet() method? In other words, the
ROOT object tree in memory has no record at any time.
Thank you very
much,
Jacky
Lu

