com.alee.laf.tree
Class TreeStateConverter

java.lang.Object
  extended by com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
      extended by com.thoughtworks.xstream.converters.reflection.ReflectionConverter
          extended by com.alee.laf.tree.TreeStateConverter
All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher, com.thoughtworks.xstream.core.Caching

public class TreeStateConverter
extends com.thoughtworks.xstream.converters.reflection.ReflectionConverter

Custom converter for TreeState class.

Author:
Mikle Garin

Nested Class Summary
 
Nested classes/interfaces inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.DuplicateFieldException, com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.UnknownFieldException
 
Field Summary
 
Fields inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
mapper, reflectionProvider, serializationMethodInvoker
 
Constructor Summary
TreeStateConverter(com.thoughtworks.xstream.mapper.Mapper mapper, com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
          Constructs TreeStateConverter with the specified mapper and reflection provider.
 
Method Summary
 boolean canConvert(java.lang.Class type)
          
 void marshal(java.lang.Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
          
 java.lang.Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
          
 
Methods inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
canAccess, doMarshal, doUnmarshal, flushCache, instantiateNewInstance, marshallField, shouldUnmarshalField, shouldUnmarshalTransientFields, unmarshallField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeStateConverter

public TreeStateConverter(com.thoughtworks.xstream.mapper.Mapper mapper,
                          com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
Constructs TreeStateConverter with the specified mapper and reflection provider.

Parameters:
mapper - mapper
reflectionProvider - reflection provider
Method Detail

canConvert

public boolean canConvert(java.lang.Class type)

Specified by:
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher
Overrides:
canConvert in class com.thoughtworks.xstream.converters.reflection.ReflectionConverter

marshal

public void marshal(java.lang.Object source,
                    com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
                    com.thoughtworks.xstream.converters.MarshallingContext context)

Specified by:
marshal in interface com.thoughtworks.xstream.converters.Converter
Overrides:
marshal in class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter

unmarshal

public java.lang.Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
                                  com.thoughtworks.xstream.converters.UnmarshallingContext context)

Specified by:
unmarshal in interface com.thoughtworks.xstream.converters.Converter
Overrides:
unmarshal in class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter