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 AbstractReflectionConverter
AbstractReflectionConverter.DuplicateFieldException, AbstractReflectionConverter.UnknownFieldException -
Field Summary
Fields inherited from class AbstractReflectionConverter
mapper, reflectionProvider, serializationMembers, serializationMethodInvoker -
Constructor Summary
ConstructorsConstructorDescriptionLookAndFeelConverter(Mapper mapper, ReflectionProvider reflectionProvider) Constructs a LookAndFeelConverter. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanConvert(Class type) Determines whether the converter can marshall a particular type.Methods inherited from class 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: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
-