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.LprTransactionItemRequestOption; |
22 | |
import org.w3c.dom.Element; |
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
@XmlAccessorType(XmlAccessType.FIELD) |
28 | |
@XmlType(name = "RequestOptionInfo", propOrder = {"id", "optionKey", "optionValue", "_futureElements"}) |
29 | |
public class LprTransactionItemRequestOptionInfo implements LprTransactionItemRequestOption { |
30 | |
|
31 | |
@XmlElement |
32 | |
private String id; |
33 | |
@XmlElement |
34 | |
private String optionKey; |
35 | |
@XmlElement |
36 | |
private String optionValue; |
37 | |
@XmlAnyElement |
38 | |
private List<Element> _futureElements; |
39 | |
|
40 | 0 | public LprTransactionItemRequestOptionInfo() { |
41 | 0 | } |
42 | |
|
43 | 0 | public LprTransactionItemRequestOptionInfo(LprTransactionItemRequestOption reqOp) { |
44 | 0 | if (null == reqOp) { |
45 | 0 | return; |
46 | |
} |
47 | 0 | this.optionValue = reqOp.getOptionValue(); |
48 | 0 | this.optionKey = reqOp.getOptionKey(); |
49 | 0 | } |
50 | |
|
51 | |
public void setOptionValue(String optionValue) { |
52 | 0 | this.optionValue = optionValue; |
53 | 0 | } |
54 | |
|
55 | |
@Override |
56 | |
public String getId() { |
57 | 0 | return id; |
58 | |
} |
59 | |
|
60 | |
@Override |
61 | |
public String getOptionKey() { |
62 | 0 | return optionKey; |
63 | |
} |
64 | |
|
65 | |
@Override |
66 | |
public String getOptionValue() { |
67 | 0 | return optionValue; |
68 | |
} |
69 | |
|
70 | |
public void setId(String id) { |
71 | 0 | this.id = id; |
72 | 0 | } |
73 | |
|
74 | |
public void setOptionKey(String optionKey) { |
75 | 0 | this.optionKey = optionKey; |
76 | 0 | } |
77 | |
|
78 | |
@Override |
79 | |
public String toString() { |
80 | 0 | StringBuilder builder = new StringBuilder(); |
81 | 0 | builder.append("LprTransactionItemRequestOptionInfo [id="); |
82 | 0 | builder.append(id); |
83 | 0 | builder.append(", optionKey="); |
84 | 0 | builder.append(optionKey); |
85 | 0 | builder.append(", optionValue="); |
86 | 0 | builder.append(optionValue); |
87 | 0 | builder.append("]"); |
88 | 0 | return builder.toString(); |
89 | |
} |
90 | |
|
91 | |
|
92 | |
} |