1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.enrollment.lpr.dto;
17
18 import java.io.Serializable;
19 import java.util.List;
20
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.XmlElement;
25 import javax.xml.bind.annotation.XmlType;
26
27 import org.kuali.student.enrollment.lpr.infc.LprTransactionItemResult;
28 import org.w3c.dom.Element;
29
30
31
32
33
34
35
36 @XmlAccessorType(XmlAccessType.FIELD)
37 @XmlType(name = "LprTransactionItemResultInfo", propOrder = {"resultingLprId", "message", "status", "_futureElements"})
38 public class LprTransactionItemResultInfo implements LprTransactionItemResult, Serializable {
39
40 private static final long serialVersionUID = 1L;
41
42 @XmlElement
43 private String resultingLprId;
44
45 @XmlElement
46 private String message;
47
48 @XmlElement
49 private Boolean status;
50
51 @XmlAnyElement
52 private List<Element> _futureElements;
53
54
55 public LprTransactionItemResultInfo() {
56 }
57
58
59 public LprTransactionItemResultInfo(LprTransactionItemResult result) {
60
61 if(null == result) return;
62
63 this.resultingLprId = result.getResultingLprId();
64 this.status = result.getStatus();
65 this.message = result.getMessage();
66 }
67
68 public void setResultingLprId(String resultingLprId) {
69 this.resultingLprId = resultingLprId;
70 }
71
72 public void setStatus(Boolean status) {
73 this.status = status;
74 }
75
76 @Override
77 public String getResultingLprId() {
78 return resultingLprId;
79 }
80
81
82 @Override
83 public Boolean getStatus() {
84 return status;
85 }
86
87
88 @Override
89 public String getMessage() {
90 return message;
91 }
92
93
94 public void setMessage(String message) {
95 this.message = message;
96 }
97
98
99 @Override
100 public String toString() {
101 StringBuilder builder = new StringBuilder();
102 builder.append("LprTransactionItemResultInfo [resultingLprId=");
103 builder.append(resultingLprId);
104 builder.append(", message=");
105 builder.append(message);
106 builder.append(", status=");
107 builder.append(status);
108 builder.append("]");
109 return builder.toString();
110 }
111
112
113
114 }