1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.student.r2.common.dto;
18
19 import java.io.Serializable;
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.XmlAnyElement;
25 import javax.xml.bind.annotation.XmlAttribute;
26 import javax.xml.bind.annotation.XmlElement;
27 import javax.xml.bind.annotation.XmlType;
28
29 import org.kuali.student.r2.common.infc.Locale;
30
31
32
33
34
35
36
37
38
39 @XmlAccessorType(XmlAccessType.FIELD)
40 @XmlType(name = "LocaleInfo", propOrder = {
41 "localeLanguage", "localeVariant",
42 "localeRegion", "localeScript" , "_futureElements" })
43
44 public class LocaleInfo
45 implements Locale, Serializable {
46
47 private static final long serialVersionUID = 1L;
48
49 @XmlElement
50 private String localeLanguage;
51
52 @XmlElement
53 private String localeVariant;
54
55 @XmlElement
56 private String localeRegion;
57
58 @XmlElement
59 private String localeScript;
60
61
62 @XmlAnyElement
63 private List<Object> _futureElements;
64
65
66
67
68
69 public LocaleInfo() {
70 }
71
72
73
74
75
76
77 public LocaleInfo(Locale locale) {
78 if (null != locale) {
79 this.localeLanguage = locale.getLocaleLanguage();
80 this.localeVariant = locale.getLocaleVariant();
81 this.localeRegion = locale.getLocaleRegion();
82 this.localeScript = locale.getLocaleScript();
83 }
84 }
85
86 @Override
87 public String getLocaleLanguage() {
88 return this.localeLanguage;
89 }
90
91 public void setLocaleLanguage(String localeLanguage) {
92 this.localeLanguage = localeLanguage;
93 }
94
95 @Override
96 public String getLocaleVariant() {
97 return this.localeVariant;
98 }
99
100 public void setLocaleVariant(String localeVariant) {
101 this.localeVariant = localeVariant;
102 }
103
104 @Override
105 public String getLocaleRegion() {
106 return this.localeRegion;
107 }
108
109 public void setLocaleRegion(String localeRegion) {
110 this.localeRegion = localeRegion;
111 }
112
113 @Override
114 public String getLocaleScript() {
115 return this.localeScript;
116 }
117
118 public void setLocaleScript(String localeScript) {
119 this.localeScript = localeScript;
120 }
121 }