1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.student.r2.common.dto; |
18 | |
|
19 | |
import java.io.Serializable; |
20 | |
import java.util.List; |
21 | |
|
22 | |
import javax.xml.bind.annotation.XmlAccessType; |
23 | |
import javax.xml.bind.annotation.XmlAccessorType; |
24 | |
import javax.xml.bind.annotation.XmlAnyElement; |
25 | |
import javax.xml.bind.annotation.XmlElement; |
26 | |
import javax.xml.bind.annotation.XmlType; |
27 | |
|
28 | |
import org.kuali.student.r2.common.infc.Attribute; |
29 | |
import org.w3c.dom.Element; |
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
@XmlAccessorType(XmlAccessType.FIELD) |
38 | |
@XmlType(name = "AttributeInfo", propOrder = { |
39 | |
"id", "key", "value", "_futureElements"}) |
40 | |
|
41 | |
public final class AttributeInfo |
42 | |
implements Attribute, Serializable { |
43 | |
|
44 | |
private static final long serialVersionUID = 1L; |
45 | |
|
46 | |
@XmlElement |
47 | |
private String id; |
48 | |
|
49 | |
@XmlElement |
50 | |
private String key; |
51 | |
|
52 | |
@XmlElement |
53 | |
private String value; |
54 | |
|
55 | |
@XmlAnyElement |
56 | |
private List<Element> _futureElements; |
57 | |
|
58 | |
|
59 | |
|
60 | |
|
61 | |
|
62 | 0 | public AttributeInfo() { |
63 | 0 | } |
64 | |
|
65 | |
|
66 | |
|
67 | |
|
68 | |
|
69 | |
|
70 | 0 | public AttributeInfo(Attribute attribute) { |
71 | 0 | if (attribute != null) { |
72 | 0 | this.id = attribute.getId(); |
73 | 0 | this.key = attribute.getKey(); |
74 | 0 | this.value = attribute.getValue(); |
75 | |
} |
76 | 0 | } |
77 | |
|
78 | |
@Override |
79 | |
public String getId() { |
80 | 0 | return id; |
81 | |
} |
82 | |
|
83 | |
public void setId(String id) { |
84 | 0 | this.id = id; |
85 | 0 | } |
86 | |
|
87 | |
@Override |
88 | |
public String getKey() { |
89 | 0 | return key; |
90 | |
} |
91 | |
|
92 | |
public void setKey(String key) { |
93 | 0 | this.key = key; |
94 | 0 | } |
95 | |
|
96 | |
@Override |
97 | |
public String getValue() { |
98 | 0 | return value; |
99 | |
} |
100 | |
|
101 | |
public void setValue(String value) { |
102 | 0 | this.value = value; |
103 | 0 | } |
104 | |
} |