1 package org.kuali.student.r1.common.assembly.transform; 2 3 import org.kuali.student.r1.common.assembly.data.Data; 4 import org.kuali.student.r1.common.assembly.data.Metadata; 5 6 @Deprecated 7 public interface DataBeanMapper { 8 9 /** 10 * Takes a DTO Bean and converts it to a Data map structure. 11 * 12 * @param value The DTO Bean to convert to data map 13 * @param metadata Metadata describing the dto bean 14 * @return the converted bean object 15 */ 16 public Data convertFromBean(Object value, Metadata metadata) throws Exception; 17 18 /** 19 * Takes a data map and converts it to the corresponding DTO Bean 20 * 21 * @param data 22 * @param clazz 23 * @return 24 */ 25 public Object convertFromData(Data data, Class<?> clazz, Metadata metadata) throws Exception; 26 27 }