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