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 aNotSerializableExceptionin their writeObject method. Therefore XStream will use an implementation based on the ReflectionConverter.- Since:
- 1.3
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
AbstractReflectionConverter.DuplicateFieldException, AbstractReflectionConverter.UnknownFieldException
-
-
Field Summary
-
Fields inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
mapper, reflectionProvider, serializationMembers, serializationMethodInvoker
-
-
Constructor Summary
Constructors Constructor Description LookAndFeelConverter(Mapper mapper, ReflectionProvider reflectionProvider)Constructs a LookAndFeelConverter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanConvert(java.lang.Class type)Determines whether the converter can marshall a particular type.-
Methods inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
canAccess, doMarshal, doUnmarshal, flushCache, instantiateNewInstance, marshal, marshallField, readResolve, shouldUnmarshalField, shouldUnmarshalTransientFields, unmarshal, unmarshallField
-
-
-
-
Constructor Detail
-
LookAndFeelConverter
public LookAndFeelConverter(Mapper mapper, ReflectionProvider reflectionProvider)
Constructs a LookAndFeelConverter.- Parameters:
mapper- the mapperreflectionProvider- the reflection provider- Since:
- 1.3
-
-
Method Detail
-
canConvert
public boolean canConvert(java.lang.Class type)
Description copied from interface:ConverterMatcherDetermines whether the converter can marshall a particular type.- Specified by:
canConvertin interfaceConverterMatcher- Overrides:
canConvertin classReflectionConverter- Parameters:
type- the Class representing the object type to be converted
-
-