1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.core.util.jaxb; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
import java.util.ArrayList; |
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.XmlElement; |
25 | |
import javax.xml.bind.annotation.XmlType; |
26 | |
|
27 | |
@XmlAccessorType(XmlAccessType.FIELD) |
28 | |
@XmlType(name = "StringMapEntryListType") |
29 | |
public class StringMapEntryList implements Serializable { |
30 | |
|
31 | |
private static final long serialVersionUID = 1L; |
32 | |
|
33 | |
@XmlElement(name = "entry") |
34 | |
private final List<StringMapEntry> entries; |
35 | |
|
36 | |
@SuppressWarnings("unused") |
37 | 2 | private StringMapEntryList() { |
38 | 2 | this.entries = null; |
39 | 2 | } |
40 | |
|
41 | 1 | public StringMapEntryList(List<StringMapEntry> entries) { |
42 | 1 | this.entries = entries; |
43 | 1 | } |
44 | |
|
45 | |
|
46 | |
|
47 | |
|
48 | |
public List<StringMapEntry> getEntries() { |
49 | 4 | if (this.entries == null) { |
50 | 0 | return new ArrayList<StringMapEntry>(); |
51 | |
} |
52 | 4 | return entries; |
53 | |
} |
54 | |
} |