1 package org.kuali.student.lum.common.client.lo;
2
3 import org.kuali.student.r1.common.assembly.data.Data;
4 import org.kuali.student.r1.common.assembly.helper.PropertyEnum;
5
6
7
8
9 public class HelperUtil {
10 public static void setDataField(PropertyEnum property, Data data, Data value) {
11 data.set(property.getKey(), value);
12 }
13
14 public static Data getDataField(PropertyEnum property, Data data) {
15 if (data.get(property.getKey()) == null) {
16 setDataField(property, data, new Data());
17 }
18 return data.get(property.getKey());
19 }
20 }