package to.etc.domui.converter;

import java.util.*;

import to.etc.domui.trouble.*;

/**
 * Basic marker interface for the allowed converters. All converters here convert Strings
 * to whatever types and v.v.
 *
 * @author <a href="mailto:jal@etc.to">Frits Jalvingh</a>
 * Created on Jun 11, 2008
 */
public interface IConverter {
	public Object convertStringToObject(Locale loc, String in) throws UIException;

	public String convertObjectToString(Locale loc, Object in) throws UIException;
}

package to.etc.domui.converter;

import java.util.*;

import to.etc.domui.trouble.*;

/**
 * Basic marker interface for the allowed converters. All converters here convert Strings
 * to whatever types and v.v.
 *
 * @author <a href="mailto:jal@etc.to">Frits Jalvingh</a>
 * Created on Jun 11, 2008
 */
public interface IConverter<T> {
	public T convertStringToObject(Locale loc, String in) throws UIException;

	public String convertObjectToString(Locale loc, T in) throws UIException;
}

Make IConverter typeful