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
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
-
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
ConstructorsConstructorDescriptionLookAndFeelConverter
(Mapper mapper, ReflectionProvider reflectionProvider) Constructs a LookAndFeelConverter. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canConvert
(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 Details
-
LookAndFeelConverter
Constructs a LookAndFeelConverter.- Parameters:
mapper
- the mapperreflectionProvider
- the reflection provider- Since:
- 1.3
-
-
Method Details
-
canConvert
Description copied from interface:ConverterMatcher
Determines whether the converter can marshall a particular type.- Specified by:
canConvert
in interfaceConverterMatcher
- Overrides:
canConvert
in classReflectionConverter
- Parameters:
type
- the Class representing the object type to be converted
-