package pt.ist.renderers.extensions.converters; import java.util.ArrayList; import java.util.List; import pt.ist.fenixframework.DomainObject; import pt.ist.renderers.components.converters.Converter; public class DomainObjectKeyArrayConverter extends Converter { @Override public Object convert(Class type, Object value) { DomainObjectKeyConverter converter = new DomainObjectKeyConverter(); List result = new ArrayList(); String[] values = (String[]) value; for (int i = 0; i < values.length; i++) { String key = values[i]; result.add((DomainObject) converter.convert(type, key)); } return result; } }