com.alee.utils.ninepatch
Class NinePatchIconConverter
java.lang.Object
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
com.thoughtworks.xstream.converters.reflection.ReflectionConverter
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 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 |
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 |
NEAR_CLASS_ATTRIBUTE
public static final java.lang.String NEAR_CLASS_ATTRIBUTE
- Converter constants.
- See Also:
- Constant Field Values
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
- mapperreflectionProvider
- reflection provider
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