com.thoughtworks.xstream.converters
Interface ConverterMatcher

All Known Subinterfaces:
Converter, SingleValueConverter
All Known Implementing Classes:
AbstractBasicConverter, AbstractCollectionConverter, AbstractReflectionConverter, AbstractSingleValueConverter, BitSetConverter, CharArrayConverter, CharConverter, ColorConverter, DynamicProxyConverter, EncodedByteArrayConverter, EnumConverter, EnumSetConverter, ExternalizableConverter, FontConverter, GregorianCalendarConverter, JavaBeanConverter, JavaMethodConverter, NullConverter, PropertiesConverter, RegexPatternConverter, SelfStreamingInstanceChecker, SingleValueConverterWrapper, ThrowableConverter

public interface ConverterMatcher

ConverterMatcher allows to match converters to classes by determining if a given type can be converted by the converter instance. ConverterMatcher is the base interface of any converter.

Since:
1.2
Author:
Joe Walnes, Jörg Schaible, Mauro Talevi
See Also:
Converter, SingleValueConverter

Method Summary
 boolean canConvert(java.lang.Class type)
          Determines whether the converter can marshall a particular type.
 

Method Detail

canConvert

public boolean canConvert(java.lang.Class type)
Determines whether the converter can marshall a particular type.

Parameters:
type - the Class representing the object type to be converted


Joe Walnes, http://xstream.codehaus.org/