Top Description Constructors Methods
com.thoughtworks.xstream.converters.extended

public Class LookAndFeelConverter

extends ReflectionConverter
Class Inheritance
Imports
com.thoughtworks.xstream.converters.reflection.ReflectionConverter, .ReflectionProvider, com.thoughtworks.xstream.mapper.Mapper, javax.swing.LookAndFeel, java.io.NotSerializableException

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.
Author
Jörg Schaible
Since
1.3

Constructor Summary

AccessConstructor and Description
public
LookAndFeelConverter(Mapper
the mapper
mapper
,
ReflectionProvider
the reflection provider
reflectionProvider
)

Constructs a LookAndFeelConverter.

Method Summary

Modifier and TypeMethod and Description
public boolean
canConvert(Class<T>
the Class representing the object type to be converted
type
)

Overrides com.thoughtworks.xstream.converters.reflection.ReflectionConverter.canConvert.

Implements com.thoughtworks.xstream.converters.ConverterMatcher.canConvert.

Determines whether the converter can marshall a particular type.

Constructor Detail

LookAndFeelConverterback to summary
public LookAndFeelConverter(Mapper mapper, ReflectionProvider reflectionProvider)

Constructs a LookAndFeelConverter.

Parameters
mapper:Mapper

the mapper

reflectionProvider:ReflectionProvider

the reflection provider

Since
1.3

Method Detail

canConvertback to summary
public boolean canConvert(Class<T> type)

Overrides com.thoughtworks.xstream.converters.reflection.ReflectionConverter.canConvert.

Implements com.thoughtworks.xstream.converters.ConverterMatcher.canConvert.

Doc from com.thoughtworks.xstream.converters.ConverterMatcher.canConvert.

Determines whether the converter can marshall a particular type.

Parameters
type:Class<T>

the Class representing the object type to be converted