1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.r2.lum.clu.dto; |
17 | |
|
18 | |
import org.kuali.student.r2.lum.clu.infc.Field; |
19 | |
|
20 | |
import javax.xml.bind.Element; |
21 | |
import javax.xml.bind.annotation.XmlAccessType; |
22 | |
import javax.xml.bind.annotation.XmlAccessorType; |
23 | |
import javax.xml.bind.annotation.XmlAnyElement; |
24 | |
import javax.xml.bind.annotation.XmlAttribute; |
25 | |
import javax.xml.bind.annotation.XmlElement; |
26 | |
import javax.xml.bind.annotation.XmlType; |
27 | |
import java.io.Serializable; |
28 | |
import java.util.List; |
29 | |
|
30 | |
@XmlAccessorType(XmlAccessType.FIELD) |
31 | |
@XmlType(name = "FieldInfo", propOrder = {"id", "value", "_futureElements"}) |
32 | |
public class FieldInfo implements Serializable, Field { |
33 | |
|
34 | |
private static final long serialVersionUID = 1L; |
35 | |
|
36 | |
@XmlAttribute |
37 | |
private String id; |
38 | |
|
39 | |
@XmlElement |
40 | |
private String value; |
41 | |
|
42 | |
@XmlAnyElement |
43 | |
private List<Element> _futureElements; |
44 | |
|
45 | 0 | public FieldInfo() { |
46 | |
|
47 | 0 | } |
48 | |
|
49 | 0 | public FieldInfo(Field field) { |
50 | 0 | if (null != field) { |
51 | 0 | this.id = field.getId(); |
52 | 0 | this.value = field.getValue(); |
53 | |
} |
54 | 0 | } |
55 | |
|
56 | |
@Override |
57 | |
public String getId() { |
58 | 0 | return id; |
59 | |
} |
60 | |
|
61 | |
public void setId(String id) { |
62 | 0 | this.id = id; |
63 | 0 | } |
64 | |
|
65 | |
@Override |
66 | |
public String getValue() { |
67 | 0 | return value; |
68 | |
} |
69 | |
|
70 | |
public void setValue(String value) { |
71 | 0 | this.value = value; |
72 | 0 | } |
73 | |
} |