Class ReflectionConverter
java.lang.Object
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
com.thoughtworks.xstream.converters.reflection.ReflectionConverter
- All Implemented Interfaces:
Converter
,ConverterMatcher
,Caching
- Direct Known Subclasses:
AnnotationReflectionConverter
,LookAndFeelConverter
-
Nested Class Summary
Nested classes/interfaces inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
AbstractReflectionConverter.DuplicateFieldException, AbstractReflectionConverter.UnknownFieldException
-
Field Summary
FieldsFields inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
mapper, reflectionProvider, serializationMembers, serializationMethodInvoker
-
Constructor Summary
ConstructorsConstructorDescriptionReflectionConverter
(Mapper mapper, ReflectionProvider reflectionProvider) ReflectionConverter
(Mapper mapper, ReflectionProvider reflectionProvider, Class type) Construct a ReflectionConverter for an explicit type. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canConvert
(Class type) Determines whether the converter can marshall a particular type.Methods inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
canAccess, doMarshal, doUnmarshal, flushCache, instantiateNewInstance, marshal, marshallField, readResolve, shouldUnmarshalField, shouldUnmarshalTransientFields, unmarshal, unmarshallField
-
Field Details
-
type
-
-
Constructor Details
-
ReflectionConverter
-
ReflectionConverter
Construct a ReflectionConverter for an explicit type.- Parameters:
mapper
- the mapper in usereflectionProvider
- the reflection provider in usetype
- the explicit type to handle- Since:
- 1.4.7
-
-
Method Details
-
canConvert
Description copied from interface:ConverterMatcher
Determines whether the converter can marshall a particular type.- Parameters:
type
- the Class representing the object type to be converted
-