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