For example, the class file:
public class Notation {
private string name;
private HTMLDocument comment; public Notation {
notation = new HTMLDocument();
}
} The Binding file:
<binding>
<mapping class="javax.swing.text.html.HTMLDocument" name="comment"
marshaller="HTMLListMapper"
unmarshaller="HTMLListMapper">
</mapping> <mapping name="notation" class="Notation">
<value name="name" field="name"/>
<structure field="comment" usage="optional"/>
</mapping>
</binding>public class HTMLListMapper implements IMarshaller, IUnmarshaller, IAliasable
{
public Object unmarshal(Object obj, IUnmarshallingContext ictx); }
When I run the unmarshalling the HTMLListMapper.unmarshal() gets called with a null object. From the examples, the unmarshal method is supposed to create the object, which gets passed back in if there are more tags (cf. the hashmap example).
So what happens to the HTMLDocument in the Notation class which is created when the constructor is called? or is the constructor never called? If I give the Notation class a pre-set method and create the comment HTMLDocument, will that get passed to the unmarshaller?
-- Thomas Jones-Low Softstart Services Inc. [EMAIL PROTECTED] JobScheduler for Oracle Ph: 802-398-1012 http://www.softstart.com
------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ jibx-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jibx-users
