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 javax.xml.bind.annotation.XmlAccessType; |
19 | |
import javax.xml.bind.annotation.XmlAccessorType; |
20 | |
import javax.xml.bind.annotation.XmlElement; |
21 | |
import javax.xml.bind.annotation.XmlType; |
22 | |
import java.io.Serializable; |
23 | |
import java.util.ArrayList; |
24 | |
import java.util.Collections; |
25 | |
import java.util.List; |
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 | 0 | private StringMapEntryList() { |
38 | 0 | this.entries = null; |
39 | 0 | } |
40 | |
|
41 | 0 | public StringMapEntryList(List<StringMapEntry> entries) { |
42 | 0 | this.entries = new ArrayList<StringMapEntry>(entries); |
43 | 0 | } |
44 | |
|
45 | |
|
46 | |
|
47 | |
|
48 | |
public List<StringMapEntry> getEntries() { |
49 | 0 | if (this.entries == null) { |
50 | 0 | return Collections.emptyList(); |
51 | |
} |
52 | 0 | return Collections.unmodifiableList(entries); |
53 | |
} |
54 | |
} |