| 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 | |
import org.kuali.student.common.dto.MetaInfo; |
| 6 | |
|
| 7 | |
import java.util.Date; |
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
public class LoCategoryInfoHelper { |
| 13 | |
private Data data; |
| 14 | |
|
| 15 | 0 | public enum Properties implements PropertyEnum |
| 16 | |
{ |
| 17 | 0 | ID ("id"), |
| 18 | 0 | DESC ("desc"), |
| 19 | 0 | EFFECTIVE_DATE ("effectiveDate"), |
| 20 | 0 | EXPIRATION_DATE ("expirationDate"), |
| 21 | 0 | LO_REPOSITORY ("loRepository"), |
| 22 | 0 | NAME ("name"), |
| 23 | 0 | STATE ("state"), |
| 24 | 0 | TYPE ("type"), |
| 25 | 0 | META ("metaInfo"); |
| 26 | |
private final String key; |
| 27 | |
|
| 28 | |
private Properties (final String key) |
| 29 | 0 | { |
| 30 | 0 | this.key = key; |
| 31 | 0 | } |
| 32 | |
|
| 33 | |
@Override |
| 34 | |
public String getKey () |
| 35 | |
{ |
| 36 | 0 | return this.key; |
| 37 | |
} |
| 38 | |
} |
| 39 | |
|
| 40 | 0 | public LoCategoryInfoHelper() { |
| 41 | 0 | this.data = new Data(); |
| 42 | 0 | } |
| 43 | |
|
| 44 | 0 | public LoCategoryInfoHelper(Data data) { |
| 45 | 0 | this.data = data; |
| 46 | 0 | } |
| 47 | |
|
| 48 | |
public Data getData() { |
| 49 | 0 | return data; |
| 50 | |
} |
| 51 | |
|
| 52 | |
public void setData(Data data) { |
| 53 | 0 | this.data = data; |
| 54 | 0 | } |
| 55 | |
|
| 56 | |
public void setId(String id) { |
| 57 | 0 | data.set(Properties.ID.getKey(), id); |
| 58 | 0 | } |
| 59 | |
|
| 60 | |
public String getId() { |
| 61 | 0 | return (String) data.get(Properties.ID.getKey()); |
| 62 | |
} |
| 63 | |
|
| 64 | |
public void setDesc(Data descData) { |
| 65 | 0 | HelperUtil.setDataField(Properties.DESC, data, descData); |
| 66 | 0 | } |
| 67 | |
|
| 68 | |
public Data getDesc() { |
| 69 | 0 | return HelperUtil.getDataField(Properties.DESC, data); |
| 70 | |
} |
| 71 | |
|
| 72 | |
public void setEffectiveDate(Date effectiveDate) { |
| 73 | 0 | data.set(Properties.EFFECTIVE_DATE.getKey(), effectiveDate); |
| 74 | 0 | } |
| 75 | |
|
| 76 | |
public Date getEffectiveDate() { |
| 77 | 0 | return (Date) data.get(Properties.EFFECTIVE_DATE.getKey()); |
| 78 | |
} |
| 79 | |
|
| 80 | |
public void setExpirationDate(Date expirationDate) { |
| 81 | 0 | data.set(Properties.EXPIRATION_DATE.getKey(), expirationDate); |
| 82 | 0 | } |
| 83 | |
|
| 84 | |
public Date getExpirationDate() { |
| 85 | 0 | return (Date) data.get(Properties.EXPIRATION_DATE.getKey()); |
| 86 | |
} |
| 87 | |
|
| 88 | |
public void setLoRepository(String loRepository) { |
| 89 | 0 | data.set(Properties.LO_REPOSITORY.getKey(), loRepository); |
| 90 | 0 | } |
| 91 | |
|
| 92 | |
public String getLoRepository() { |
| 93 | 0 | return (String) data.get(Properties.LO_REPOSITORY.getKey()); |
| 94 | |
} |
| 95 | |
|
| 96 | |
public void setName(String name) { |
| 97 | 0 | data.set(Properties.NAME.getKey(), name); |
| 98 | 0 | } |
| 99 | |
|
| 100 | |
public String getName() { |
| 101 | 0 | return (String) data.get(Properties.NAME.getKey()); |
| 102 | |
} |
| 103 | |
|
| 104 | |
public void setState(String state) { |
| 105 | 0 | data.set(Properties.STATE.getKey(), state); |
| 106 | 0 | } |
| 107 | |
|
| 108 | |
public String getState() { |
| 109 | 0 | return (String) data.get(Properties.STATE.getKey()); |
| 110 | |
} |
| 111 | |
|
| 112 | |
public void setType(String type) { |
| 113 | 0 | data.set(Properties.TYPE.getKey(), type); |
| 114 | 0 | } |
| 115 | |
|
| 116 | |
public String getType() { |
| 117 | 0 | return (String) data.get(Properties.TYPE.getKey()); |
| 118 | |
} |
| 119 | |
|
| 120 | |
public void setMetaInfo(Data meta) { |
| 121 | 0 | data.set(Properties.META.getKey(), meta); |
| 122 | 0 | } |
| 123 | |
|
| 124 | |
public Data getMetaInfo() { |
| 125 | 0 | return (Data) data.get(Properties.META.getKey()); |
| 126 | |
} |
| 127 | |
|
| 128 | |
} |