com.thoughtworks.xstream.converters.extended
Class LookAndFeelConverter
java.lang.Object
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
com.thoughtworks.xstream.converters.reflection.ReflectionConverter
com.thoughtworks.xstream.converters.extended.LookAndFeelConverter
- All Implemented Interfaces:
- Converter, ConverterMatcher, Caching
public class LookAndFeelConverter
- extends ReflectionConverter
A converter for Swing LookAndFeel implementations. The JDK's implementations are serializable
for historical reasons but will throw a NotSerializableException
in their writeObject
method. Therefore XStream will use an implementation based on the ReflectionConverter.
- Since:
- 1.3
- Author:
- Jörg Schaible
Method Summary |
boolean |
canConvert(Class type)
Determines whether the converter can marshall a particular type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LookAndFeelConverter
public LookAndFeelConverter(Mapper mapper,
ReflectionProvider reflectionProvider)
- Constructs a LookAndFeelConverter.
- Parameters:
mapper
- the mapperreflectionProvider
- the reflection provider- Since:
- 1.3
canConvert
public boolean canConvert(Class type)
- Description copied from interface:
ConverterMatcher
- Determines whether the converter can marshall a particular type.
- Specified by:
canConvert
in interface ConverterMatcher
- Overrides:
canConvert
in class ReflectionConverter
- Parameters:
type
- the Class representing the object type to be converted
Copyright © 2004-2014 XStream. All Rights Reserved.