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
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
56 @XmlAnyElement
57 private List<Object> _futureElements;
58
59
60
61
62
63 public AttributeInfo() {
64 }
65
66
67
68
69
70
71 public AttributeInfo(Attribute attribute) {
72 if (attribute != null) {
73 this.id = attribute.getId();
74 this.key = attribute.getKey();
75 this.value = attribute.getValue();
76 }
77 }
78
79 public AttributeInfo(String key, String value) {
80 super();
81 this.key = key;
82 this.value = value;
83 }
84
85 @Override
86 public String getId() {
87 return id;
88 }
89
90 public void setId(String id) {
91 this.id = id;
92 }
93
94 @Override
95 public String getKey() {
96 return key;
97 }
98
99 public void setKey(String key) {
100 this.key = key;
101 }
102
103 @Override
104 public String getValue() {
105 return value;
106 }
107
108 public void setValue(String value) {
109 this.value = value;
110 }
111
112 }