1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.r2.core.enumerationmanagement.dto; |
17 | |
|
18 | |
import org.kuali.student.r2.common.dto.MetaInfo; |
19 | |
import org.kuali.student.r2.common.infc.Meta; |
20 | |
import org.kuali.student.r2.core.enumerationmanagement.infc.EnumContextValue; |
21 | |
|
22 | |
import javax.xml.bind.Element; |
23 | |
import javax.xml.bind.annotation.XmlAccessType; |
24 | |
import javax.xml.bind.annotation.XmlAccessorType; |
25 | |
import javax.xml.bind.annotation.XmlAnyElement; |
26 | |
import javax.xml.bind.annotation.XmlElement; |
27 | |
import javax.xml.bind.annotation.XmlType; |
28 | |
import java.io.Serializable; |
29 | |
import java.util.List; |
30 | |
|
31 | |
|
32 | |
@XmlAccessorType(XmlAccessType.FIELD) |
33 | |
@XmlType(name = "EnumContextValueInfo", propOrder = {"key", "value","meta", "_futureElements"}) |
34 | |
public class EnumContextValueInfo implements EnumContextValue, Serializable { |
35 | |
|
36 | |
private static final long serialVersionUID = 1L; |
37 | |
|
38 | |
@XmlElement |
39 | |
private String key; |
40 | |
@XmlElement |
41 | |
private String value; |
42 | |
@XmlElement |
43 | |
private MetaInfo meta; |
44 | |
@XmlAnyElement |
45 | |
private List<Element> _futureElements; |
46 | |
|
47 | 0 | public EnumContextValueInfo() { |
48 | 0 | } |
49 | |
|
50 | 0 | public EnumContextValueInfo(EnumContextValue enumContextValue) { |
51 | 0 | if (null != enumContextValue) { |
52 | 0 | this.meta = new MetaInfo(enumContextValue.getMeta()); |
53 | 0 | this.key = enumContextValue.getKey(); |
54 | 0 | this.value = enumContextValue.getValue(); |
55 | |
} |
56 | 0 | } |
57 | |
|
58 | |
@Override |
59 | |
public String getKey() { |
60 | 0 | return key; |
61 | |
} |
62 | |
|
63 | |
public void setKey(String key) { |
64 | 0 | this.key = key; |
65 | 0 | } |
66 | |
|
67 | |
@Override |
68 | |
public String getValue() { |
69 | 0 | return value; |
70 | |
} |
71 | |
|
72 | |
public void setValue(String value) { |
73 | 0 | this.value = value; |
74 | 0 | } |
75 | |
|
76 | |
@Override |
77 | |
public Meta getMeta() { |
78 | 0 | return meta; |
79 | |
} |
80 | |
|
81 | |
public void setMeta(MetaInfo meta) { |
82 | 0 | this.meta = meta; |
83 | 0 | } |
84 | |
|
85 | |
} |