01: /*
02: * Copyright (C) 2006, 2007 XStream Committers.
03: * All rights reserved.
04: *
05: * The software in this package is published under the terms of the BSD
06: * style license a copy of which has been included with this distribution in
07: * the LICENSE.txt file.
08: *
09: * Created on 15. February 2006 by Mauro Talevi
10: */
11: package com.thoughtworks.xstream.converters;
12:
13: /**
14: * ConverterMatcher allows to match converters to classes by
15: * determining if a given type can be converted by the converter instance.
16: * ConverterMatcher is the base interface of any converter.
17: *
18: * @author Joe Walnes
19: * @author Jörg Schaible
20: * @author Mauro Talevi
21: * @see com.thoughtworks.xstream.converters.Converter
22: * @see com.thoughtworks.xstream.converters.SingleValueConverter
23: * @since 1.2
24: */
25: public interface ConverterMatcher {
26:
27: /**
28: * Determines whether the converter can marshall a particular type.
29: * @param type the Class representing the object type to be converted
30: */
31: boolean canConvert(Class type);
32:
33: }
|