1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.r2.common.messages.dto; |
17 | |
|
18 | |
import org.kuali.student.r2.common.messages.infc.LocaleKeys; |
19 | |
import org.w3c.dom.Element; |
20 | |
|
21 | |
import java.util.ArrayList; |
22 | |
import java.util.List; |
23 | |
|
24 | |
import javax.xml.bind.annotation.*; |
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
@XmlAccessorType(XmlAccessType.FIELD) |
33 | |
@XmlType(name = "LocaleKeysInfo", propOrder = {"locales", "_futureElements"}) |
34 | |
public class LocaleKeysInfo implements LocaleKeys, java.io.Serializable { |
35 | |
private static final long serialVersionUID = 1L; |
36 | |
|
37 | |
@XmlElement |
38 | |
protected List<String> locales; |
39 | |
|
40 | |
@XmlAnyElement |
41 | |
private List<Element> _futureElements; |
42 | |
|
43 | 0 | public LocaleKeysInfo() { |
44 | 0 | } |
45 | |
|
46 | 0 | public LocaleKeysInfo(LocaleKeys locales) { |
47 | 0 | if (null != locales) { |
48 | 0 | this.locales = (null != locales.getLocales()) ? new ArrayList<String>(locales.getLocales()) : null; |
49 | |
} |
50 | 0 | } |
51 | |
|
52 | |
@Override |
53 | |
public List<String> getLocales() { |
54 | 0 | if (this.locales == null) { |
55 | 0 | this.locales = new ArrayList<String>(); |
56 | |
} |
57 | 0 | return this.locales; |
58 | |
} |
59 | |
|
60 | |
public void setLocales(List<String> locales) { |
61 | 0 | this.locales = locales; |
62 | |
|
63 | 0 | } |
64 | |
} |