1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.core.organization.assembly.data.client; |
17 | |
|
18 | |
import org.kuali.student.common.assembly.data.Data; |
19 | |
import org.kuali.student.common.assembly.helper.PropertyEnum; |
20 | |
|
21 | |
public class VersionData extends Data { |
22 | 0 | public enum Properties implements PropertyEnum { |
23 | 0 | TYPENAME("typeName"), ID("id"), VERSION_INDICATOR("versionIndicator"); |
24 | |
|
25 | |
private final String key; |
26 | |
|
27 | 0 | private Properties(final String key) { |
28 | 0 | this.key = key; |
29 | 0 | } |
30 | |
|
31 | |
@Override |
32 | |
public String getKey() { |
33 | 0 | return this.key; |
34 | |
} |
35 | |
} |
36 | |
private static final long serialVersionUID = 1L; |
37 | |
|
38 | |
protected VersionData() { |
39 | |
|
40 | 0 | super(VersionData.class.getName()); |
41 | 0 | } |
42 | |
public VersionData(String typeName, String id, String versionIndicator) { |
43 | 0 | super(VersionData.class.getName()); |
44 | 0 | super.set(Properties.TYPENAME.getKey(), typeName); |
45 | 0 | super.set(Properties.ID.getKey(), id); |
46 | 0 | super.set(Properties.VERSION_INDICATOR.getKey(), versionIndicator); |
47 | 0 | } |
48 | |
public String getTypeName() { |
49 | 0 | return super.get(Properties.TYPENAME.getKey()); |
50 | |
} |
51 | |
public String getId() { |
52 | 0 | return super.get(Properties.ID.getKey()); |
53 | |
} |
54 | |
public String getVersionIndicator() { |
55 | 0 | return super.get(Properties.VERSION_INDICATOR.getKey()); |
56 | |
} |
57 | |
} |