|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
com.thoughtworks.xstream.converters.reflection.ReflectionConverter
com.thoughtworks.xstream.converters.extended.LookAndFeelConverter
public class LookAndFeelConverter
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter |
---|
AbstractReflectionConverter.DuplicateFieldException |
Field Summary |
---|
Fields inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter |
---|
mapper, reflectionProvider, serializationMethodInvoker |
Constructor Summary | |
---|---|
LookAndFeelConverter(Mapper mapper,
ReflectionProvider reflectionProvider)
Constructs a LookAndFeelConverter. |
Method Summary | |
---|---|
boolean |
canConvert(java.lang.Class type)
Determines whether the converter can marshall a particular type. |
Methods inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter |
---|
doMarshal, doUnmarshal, instantiateNewInstance, marshal, marshallField, shouldUnmarshalTransientFields, unmarshal, unmarshallField |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LookAndFeelConverter(Mapper mapper, ReflectionProvider reflectionProvider)
mapper
- the mapperreflectionProvider
- the reflection providerMethod Detail |
---|
public boolean canConvert(java.lang.Class type)
ConverterMatcher
canConvert
in interface ConverterMatcher
canConvert
in class ReflectionConverter
type
- the Class representing the object type to be converted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |