com.alee.managers.settings
Class SettingsConverter
java.lang.Object
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
com.thoughtworks.xstream.converters.reflection.ReflectionConverter
com.alee.managers.settings.SettingsConverter
- All Implemented Interfaces:
- com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher, com.thoughtworks.xstream.core.Caching
public class SettingsConverter
- extends com.thoughtworks.xstream.converters.reflection.ReflectionConverter
Custom XStream converter for SettingsManager groups.
- Author:
- Mikle Garin
- See Also:
- How to use SettingsManager,
SettingsManager
Nested classes/interfaces inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter |
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.DuplicateFieldException, com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.UnknownFieldException |
Fields inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter |
mapper, reflectionProvider, serializationMethodInvoker |
Constructor Summary |
SettingsConverter(com.thoughtworks.xstream.mapper.Mapper mapper,
com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
Constructs SettingsConverter with the specified mapper and reflection provider. |
Method Summary |
boolean |
canConvert(java.lang.Class type)
|
void |
marshal(java.lang.Object source,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context)
|
java.lang.Object |
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
|
Methods inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter |
canAccess, doMarshal, doUnmarshal, flushCache, instantiateNewInstance, marshallField, shouldUnmarshalField, shouldUnmarshalTransientFields, unmarshallField |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SettingsConverter
public SettingsConverter(com.thoughtworks.xstream.mapper.Mapper mapper,
com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
- Constructs SettingsConverter with the specified mapper and reflection provider.
- Parameters:
mapper
- mapperreflectionProvider
- reflection provider
canConvert
public boolean canConvert(java.lang.Class type)
-
- Specified by:
canConvert
in interface com.thoughtworks.xstream.converters.ConverterMatcher
- Overrides:
canConvert
in class com.thoughtworks.xstream.converters.reflection.ReflectionConverter
marshal
public void marshal(java.lang.Object source,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context)
-
- Specified by:
marshal
in interface com.thoughtworks.xstream.converters.Converter
- Overrides:
marshal
in class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
unmarshal
public java.lang.Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
-
- Specified by:
unmarshal
in interface com.thoughtworks.xstream.converters.Converter
- Overrides:
unmarshal
in class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter