Hi,
 
I'm trying to understand how I can use Castor (0.9.3.X) to marshal and
unmarshall a java.util.HashMap containing java.lang.String as both key and
value.  The two approaches I have seen advocated by reviewing the archives
(either remodelling the collection or implementing a FieldHandler) seem to
imply something along the lines of:
 
class Item {
    Object key;
}
 
and a mapping of::
 
HashMap<item.key,item>
 
Such that the key can be properly derived from the value.  In my case the key
cannot be derived from the value, they are both independent Strings.
 
Is there another approach that will work in this situation?  Or do I have to
reduce my problem to the problem described above by introducing an Item
class?
 
Regards,
 
matt
 

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to