com.alee.utils.ninepatch
Class NinePatchIconConverter

java.lang.Object
  extended by com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
      extended by com.thoughtworks.xstream.converters.reflection.ReflectionConverter
          extended by com.alee.utils.ninepatch.NinePatchIconConverter
All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher, com.thoughtworks.xstream.core.Caching

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

Custom XStream converter for NinePatchIcon 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
static java.lang.String NEAR_CLASS_ATTRIBUTE
          Converter constants.
 
Fields inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
mapper, reflectionProvider, serializationMethodInvoker
 
Constructor Summary
NinePatchIconConverter(com.thoughtworks.xstream.mapper.Mapper mapper, com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
          Constructs NinePatchIconConverter with the specified mapper and reflection provider.
 
Method Summary
 boolean canConvert(java.lang.Class type)
          
 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, marshal, marshallField, shouldUnmarshalField, shouldUnmarshalTransientFields, unmarshallField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NEAR_CLASS_ATTRIBUTE

public static final java.lang.String NEAR_CLASS_ATTRIBUTE
Converter constants.

See Also:
Constant Field Values
Constructor Detail

NinePatchIconConverter

public NinePatchIconConverter(com.thoughtworks.xstream.mapper.Mapper mapper,
                              com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
Constructs NinePatchIconConverter 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

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