Persisting collections, maps, strings as root-level elements.
List, Map, String can all be persisted/loaded when they are member of a class. However, for serialization we may want to persist/load these classes as root-level elements. There are problems with these.
1. String becomes a list of characters (works, but inefficient)
2. List gets loaded as a list of Object elements that can't be cast
3. Map just blows up.
Some commented-out code attempted to fix these, but I ran into other problems. Essentially, I would like to use the specific node builders when these classes are root-level elements.
Last edit: Rob Philipp 2012-10-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Enhancements, bug fixes, new ideas to help make FreezeDry better.
Last edit: Rob Philipp 2012-10-22
Persisting collections, maps, strings as root-level elements.
List, Map, String can all be persisted/loaded when they are member of a class. However, for serialization we may want to persist/load these classes as root-level elements. There are problems with these.
1. String becomes a list of characters (works, but inefficient)
2. List gets loaded as a list of Object elements that can't be cast
3. Map just blows up.
Some commented-out code attempted to fix these, but I ran into other problems. Essentially, I would like to use the specific node builders when these classes are root-level elements.
Last edit: Rob Philipp 2012-10-22