package ru.yandex.autotests.direct.utils.converter;

import org.apache.commons.beanutils.Converter;

/**
 * Created with IntelliJ IDEA.
 * User: mariabye
 * Date: 26.06.13
 * Time: 11:02
 * To change this template use File | Settings | File Templates.
 */
public class StageTypeConverter implements Converter {
    @Override
    public Object convert(Class aClass, Object o) {
        return Enum.valueOf(aClass, o.toString().toUpperCase().trim().split(":")[0]);
    }
}
