001package org.javasimon.utils.bean;
002
003/**
004 * Interface for converting string values to a values of a property in Java bean.
005 *
006 * @author <a href="mailto:ivan.mushketyk@gmail.com">Ivan Mushketyk</a>
007 */
008public interface Converter {
009        /**
010         * Converts string values to an object of a bean property.
011         *
012         * @param targetClass type of property
013         * @param strVal value to convert
014         * @return conversion result
015         * @throws ConvertException in case if string value cannot be converted a target class
016         */
017        Object convert(Class<?> targetClass, String strVal) throws ConvertException;
018}