Details
-
Type: Improvement
-
Status: Closed
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
I have written a custom Converter which decides based on the document element's version how the document should be parsed. A certain version is parsed by registering a number of other custom converters and some aliases. However, It also needs to unregister converters or remove an alias in certain situations. As there is no api for this yet, and a number of fields in the DefaultConverterLookup and DefaultClassMapper classes are set to private, I basically need to copy those classes completetly, althoug I would only need to modify a few lines.
It would be good if there was an unregisterConverter and unregisterAlias method in the XStream/DefaultConverterLookup/DefaultClassMapper class or at least the private fields were set to protected.
Adding my own NullConverter , i need to remove the custom converter programaticly.
Regards Rickard Lundin (sweden 2005-06-29)