1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.kuali.student.enrollment.lpr.dto; |
12 | |
|
13 | |
import java.util.List; |
14 | |
|
15 | |
import javax.xml.bind.annotation.XmlAccessType; |
16 | |
import javax.xml.bind.annotation.XmlAccessorType; |
17 | |
import javax.xml.bind.annotation.XmlAnyElement; |
18 | |
import javax.xml.bind.annotation.XmlElement; |
19 | |
import javax.xml.bind.annotation.XmlType; |
20 | |
|
21 | |
import org.kuali.student.enrollment.lpr.infc.RequestOption; |
22 | |
import org.w3c.dom.Element; |
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
@XmlAccessorType(XmlAccessType.FIELD) |
31 | |
@XmlType(name = "RequestOptionInfo", propOrder = {"id","optionKey", "optionValue", "_futureElements"}) |
32 | |
public class RequestOptionInfo implements RequestOption { |
33 | |
|
34 | |
@XmlElement |
35 | |
private String id; |
36 | |
|
37 | |
@XmlElement |
38 | |
private String optionKey; |
39 | |
|
40 | |
@XmlElement |
41 | |
private String optionValue; |
42 | |
|
43 | |
@XmlAnyElement |
44 | |
private List<Element> _futureElements; |
45 | |
|
46 | 0 | public RequestOptionInfo() { |
47 | 0 | this.optionValue = null; |
48 | 0 | this.optionKey = null; |
49 | 0 | this._futureElements = null; |
50 | 0 | } |
51 | |
|
52 | 0 | public RequestOptionInfo(RequestOption reqOp) { |
53 | 0 | if (null == reqOp) |
54 | 0 | return; |
55 | |
|
56 | 0 | this.optionValue = reqOp.getOptionValue(); |
57 | 0 | this.optionKey = reqOp.getOptionKey(); |
58 | 0 | this._futureElements = null; |
59 | 0 | } |
60 | |
|
61 | |
public void setOptionValue(String optionValue) { |
62 | 0 | this.optionValue = optionValue; |
63 | 0 | } |
64 | |
|
65 | |
public String getId() { |
66 | 0 | return id; |
67 | |
} |
68 | |
|
69 | |
@Override |
70 | |
public String getOptionKey() { |
71 | 0 | return optionKey; |
72 | |
} |
73 | |
|
74 | |
@Override |
75 | |
public String getOptionValue() { |
76 | 0 | return optionValue; |
77 | |
} |
78 | |
|
79 | |
public void setId(String id) { |
80 | 0 | this.id = id; |
81 | 0 | } |
82 | |
|
83 | |
public void setOptionKey(String optionKey) { |
84 | 0 | this.optionKey = optionKey; |
85 | 0 | } |
86 | |
|
87 | |
} |