1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.common.messages.dto; |
17 | |
|
18 | |
import java.util.ArrayList; |
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.XmlElement; |
24 | |
import javax.xml.bind.annotation.XmlRootElement; |
25 | |
|
26 | |
@XmlAccessorType(XmlAccessType.FIELD) |
27 | |
@XmlRootElement(name = "MessageList") |
28 | 0 | public class MessageList implements java.io.Serializable { |
29 | |
|
30 | |
private static final long serialVersionUID = 1L; |
31 | |
|
32 | |
@XmlElement(name = "message", required = true) |
33 | |
protected List<Message> messages; |
34 | |
|
35 | |
public List<Message> getMessages() { |
36 | 0 | if (messages == null) { |
37 | 0 | messages = new ArrayList<Message>(); |
38 | |
} |
39 | 0 | return this.messages; |
40 | |
} |
41 | |
|
42 | |
public void setMessages(List<Message> l) { |
43 | 0 | messages = l; |
44 | |
|
45 | 0 | } |
46 | |
} |