Top Fields Constructors Methods
com.thoughtworks.xstream.converters.reflection

public Class ReflectionConverter

extends AbstractReflectionConverter
Class Inheritance
Known Direct Subclasses
com.thoughtworks.xstream.annotations.AnnotationReflectionConverter, com.thoughtworks.xstream.converters.extended.LookAndFeelConverter
Imports
com.thoughtworks.xstream.mapper.Mapper

Field Summary

Modifier and TypeField and Description
private Class<T>
Inherited from com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter:
mapperreflectionProviderserializationMembersserializationMethodInvoker

Constructor Summary

AccessConstructor and Description
public
ReflectionConverter(Mapper mapper, ReflectionProvider reflectionProvider)

public
ReflectionConverter(Mapper
the mapper in use
mapper
,
ReflectionProvider
the reflection provider in use
reflectionProvider
,
Class<T>
the explicit type to handle
type
)

Construct a ReflectionConverter for an explicit type.

Method Summary

Modifier and TypeMethod and Description
public boolean
canConvert(Class<T>
the Class representing the object type to be converted
type
)

Implements com.thoughtworks.xstream.converters.ConverterMatcher.canConvert.

Determines whether the converter can marshall a particular type.
Inherited from com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter:
canAccessdoMarshaldoUnmarshalflushCacheinstantiateNewInstancemarshalmarshallFieldreadResolveshouldUnmarshalFieldshouldUnmarshalTransientFieldsunmarshalunmarshallField

Field Detail

typeback to summary
private Class<T> type

Constructor Detail

ReflectionConverterback to summary
public ReflectionConverter(Mapper mapper, ReflectionProvider reflectionProvider)
ReflectionConverterback to summary
public ReflectionConverter(Mapper mapper, ReflectionProvider reflectionProvider, Class<T> type)

Construct a ReflectionConverter for an explicit type.

Parameters
mapper:Mapper

the mapper in use

reflectionProvider:ReflectionProvider

the reflection provider in use

type:Class<T>

the explicit type to handle

Since
1.4.7

Method Detail

canConvertback to summary
public boolean canConvert(Class<T> type)

Implements com.thoughtworks.xstream.converters.ConverterMatcher.canConvert.

Doc from com.thoughtworks.xstream.converters.ConverterMatcher.canConvert.

Determines whether the converter can marshall a particular type.

Parameters
type:Class<T>

the Class representing the object type to be converted