Converter.java

biz/hammurapi/convert/Converter.java

Violations

Inspector Message Severity Location
Java Inspector 048 Copyrights information should be present in each file. 1
Java Inspector 085 Do not declare runtime exceptions in the throws clause. 2 19:9

Source code

1package biz.hammurapi.convert;
2
3import biz.hammurapi.config.Context;
4
5/**
6 * Converts objects from one type to another, e.g. Integer to String.
7 * @author Pavel
8 *
9 */
10public interface Converter {
11
12 /**
13 * Converts object to requested target type.
14 * @param source Source object.
15 * @param targetType Target type.
16 * @param context Conversion context.
17 * @return Converted object.
18 */
19 Object convert(Object source, Class targetType, Context context) throws ConversionException;
20}
21