001package com.hammurapi.convert;
002
003import com.hammurapi.common.Context;
004
005/**
006 * Converter which is part of a composite converter and can delegate conversions to its parent.
007 * @author Pavel
008 *
009 */
010public interface ConverterPart {
011
012        /**
013         * Converts object to requested target type.
014         * @param source Source object.
015         * @param targetType Target type.
016         * @param context Conversion context.
017         * @return Converted object.
018         */
019        <S, T> T convert(S source, Class<T> targetType, Context context, Converter master) throws ConversionException;
020}